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:31]
val [Управление лимитами Systemd]
управление_сервисами_в_linux [2023/02/20 08:00]
val [Управление юнитами Systemd]
Line 150: Line 150:
  
 ==== Управление юнитами Systemd ===== ==== Управление юнитами Systemd =====
 +
 +  * [[https://​docs.gitea.io/​en-us/​linux-service/​|Run Gitea as Linux service]]
  
 <​code>​ <​code>​
Line 191: Line 193:
 </​code>​ </​code>​
  
-==== Управление лимитами через Systemd =====+==== Настройка ​параметров запуска в Systemd =====
  
 <​code>​ <​code>​
-# systemctl edit nginx+# systemctl edit имясервиса
 </​code><​code>​ </​code><​code>​
 [Service] [Service]
-LimitNOFILE=65536 +LimitNOFILE=65536 ​     # nginx  
-LimitNOFILESoft=65536+TimeoutStartSec=180    # elasticsearch
 </​code><​code>​ </​code><​code>​
-# systemctl daemon-reload+# systemctl daemon-reload ​    # не очевидно,​ что нужно 
 + 
 +# systemctl show имясервиса
  
-# systemctl restart ​nginx+# systemctl restart ​имясервиса
  
-# systemctl status ​nginx+# systemctl status ​имясервиса
  
 # cat /​proc/​NNNNN/​limits # cat /​proc/​NNNNN/​limits
управление_сервисами_в_linux.txt · Last modified: 2023/06/01 13:55 by val