Не работает рестарт nginx
Posted: Fri Nov 27, 2015 11:53 pm
Здравствуйте, такая проблема, не рестартится nginx
был создан /lib/systemd/system/nginx.service
c содержимым
до создания /lib/systemd/system/nginx.service
была такая ошибка
Code: Select all
● nginx.service - Nginx - a high performance http(s) server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
Active: failed (Result: exit-code) since Sat 2015-11-28 00:42:07 CET; 8s ago
Process: 16038 ExecStart=/usr/sbin/nginx (code=exited, status=1/FAILURE)
Nov 28 00:42:07 localhost nginx[16038]: nginx: [emerg] open() "/var/log/nginx/domains/site.ru.error.log" failed (24: Too many open files)
Nov 28 00:42:07 localhost systemd[1]: nginx.service: control process exited, code=exited status=1
Nov 28 00:42:07 localhost systemd[1]: Failed to start Nginx - a high performance http(s) server.
Nov 28 00:42:07 localhost systemd[1]: Unit nginx.service entered failed state.
c содержимым
Code: Select all
[Unit]
Description=Nginx - a high performance http(s) server
After=syslog.target network.target
[Service]
Type=forking
ExecStart=/usr/sbin/nginx
ExecReload=/usr/sbin/nginx -s reload
[Install]
WantedBy=multi-user.target
была такая ошибка
Code: Select all
nginx.service - LSB: Stop/start nginx
Loaded: loaded (/etc/init.d/nginx)
Active: failed (Result: exit-code) since Fri 2015-11-27 22:48:24 CET; 6s ago
Process: 5727 ExecStart=/etc/init.d/nginx start (code=exited, status=1/FAILURE)
Nov 27 22:48:24 localhost systemd[1]: nginx.service: control process exited, code=exited status=1
Nov 27 22:48:24 localhost systemd[1]: Failed to start LSB: Stop/start nginx.
Nov 27 22:48:24 localhost systemd[1]: Unit nginx.service entered failed state.