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/10/29 14:29]
val [Система загрузки Systemd]
управление_сервисами_в_linux [2022/03/11 09:42]
val [Настройка параметров запуска в Systemd]
Line 191: Line 191:
 </​code>​ </​code>​
  
-==== Управление лимитами Systemd =====+==== Настройка ​параметров запуска в Systemd =====
  
 <​code>​ <​code>​
-# systemctl edit nginx+# systemctl edit имясервиса
 </​code><​code>​ </​code><​code>​
 [Service] [Service]
-LimitNOFILE=65536 +LimitNOFILE=65536 ​     # nginx  
-LimitNOFILESoft=65536+LimitNOFILESoft=65536 ​ # nginx 
 +TimeoutStartSec=180 ​   # elasticsearch
 </​code><​code>​ </​code><​code>​
-# systemctl daemon-reload+# systemctl daemon-reload ​    # не очевидно,​ что нужно
  
-# systemctl ​restart nginx+# systemctl ​show имясервиса
  
-# systemctl status ​nginx+# systemctl restart имясервиса 
 + 
 +# systemctl status ​имясервиса
  
 # cat /​proc/​NNNNN/​limits # cat /​proc/​NNNNN/​limits
управление_сервисами_в_linux.txt · Last modified: 2023/06/01 13:55 by val