User Tools

Site Tools


управление_сервисами_в_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
управление_сервисами_в_linux [2021/07/02 08:24]
val [Система загрузки Systemd]
управление_сервисами_в_linux [2021/10/29 14:31]
val [Управление лимитами Systemd]
Line 134: Line 134:
 # chkconfig --del sshvpn # chkconfig --del sshvpn
 </​code>​ </​code>​
 +==== Управление ресурсами ==== 
 +<​code>​ 
 +# cat /​etc/​init.d/​asterisk 
 +</​code><​code>​ 
 +... 
 +MAXFILES=65536 
 +... 
 +</​code>​
 ===== Система загрузки Systemd ===== ===== Система загрузки Systemd =====
  
Line 141: Line 148:
   * [[https://​habrahabr.ru/​company/​centosadmin/​blog/​255845/​|Systemd за пять минут]]   * [[https://​habrahabr.ru/​company/​centosadmin/​blog/​255845/​|Systemd за пять минут]]
   * [[https://​wiki.archlinux.org/​index.php/​systemd|systemd]]   * [[https://​wiki.archlinux.org/​index.php/​systemd|systemd]]
 +
 +==== Управление юнитами Systemd =====
  
 <​code>​ <​code>​
Line 148: Line 157:
 centos# find /​usr/​lib/​systemd/​system/​ centos# find /​usr/​lib/​systemd/​system/​
 debian# find /​lib/​systemd/​system/​ debian# find /​lib/​systemd/​system/​
 +
 +# find /​etc/​default/​
  
 $ systemctl status ssh $ systemctl status ssh
Line 178: Line 189:
  
 # systemctl start sshvpn # systemctl start sshvpn
-</​code><​code>​+</​code>​ 
 + 
 +==== Управление лимитами через Systemd ===== 
 + 
 +<​code>​
 # systemctl edit nginx # systemctl edit nginx
 </​code><​code>​ </​code><​code>​
 [Service] [Service]
-LimitNOFILE=16000 +LimitNOFILE=65536 
-LimitNOFILESoft=16000+LimitNOFILESoft=65536
 </​code><​code>​ </​code><​code>​
 # systemctl daemon-reload # systemctl daemon-reload
управление_сервисами_в_linux.txt · Last modified: 2023/06/01 13:55 by val