Вырубить nginx
Posted: Wed Mar 23, 2016 8:33 pm
Centos 7, vestacp последняя, как правильно отказаться от nginx? Мне достаточно будет одного апача
Убрал из поддерживаемых типов html - нажал применить - пишет не удалось запустить nginx, вписал назад - то же самое, рестартонул сервак - nginx не стартует, сайты лежат, спасайте!imperio wrote:В настройках веб-домена деактивировать чекбокс Nginx, если простым путем.
Снял уже теперь, все равно не стартует nginx, location directive is not allowed here и тут путь к конфигурации nginxа.imperio wrote:Нужно просто снять галочку с Nginx в настройках веб-домена.
Code: Select all
service nginx restart
Как это сделать?imperio wrote:Сделайте ребилд веб для пользователя, которому пренадлежит веб - домен
Code: Select all
Redirecting to /bin/systemctl restart nginx.service
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
[root@ki web]# systemctl restart nginx
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
[root@ki web]# systemctl start nginx
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
[root@ki web]# systemctl status nginx
● nginx.service - nginx - high performance web server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2016-03-23 23:30:25 EET; 9s ago
Docs: http://nginx.org/en/docs/
Process: 3976 ExecStartPre=/usr/sbin/nginx -t -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE)
Mar 23 23:30:25 ki.sumdu.edu.ua systemd[1]: Starting nginx - high performance web server...
Mar 23 23:30:25 ki.sumdu.edu.ua nginx[3976]: nginx: [emerg] "location" directive is not allowed here in /home/kisumdu/conf/web/nginx.conf:1
Mar 23 23:30:25 ki.sumdu.edu.ua nginx[3976]: nginx: configuration file /etc/nginx/nginx.conf test failed
Mar 23 23:30:25 ki.sumdu.edu.ua systemd[1]: nginx.service: control process exited, code=exited status=1
Mar 23 23:30:25 ki.sumdu.edu.ua systemd[1]: Failed to start nginx - high performance web server.
Mar 23 23:30:25 ki.sumdu.edu.ua systemd[1]: Unit nginx.service entered failed state.
Mar 23 23:30:25 ki.sumdu.edu.ua systemd[1]: nginx.service failed.
Code: Select all
v-rebuild-web-domains USER
Все, сделал, конечно зря не забекапил старые, пришлось сейчас править по памяти. Хотя так навскидку, после моих манипуляций, когда удалил из поддерживаемых типов HTML из поддерживаемых типов файлов кешировани в прокси - в конфиг добавились первыми 2 строки непонятных локейшинов. В них видать и было дело. Спасибо большое, про v-rebuild-web-domain сам бы так быстро не нашел инфу, кстати, она почему-то не в path у меня, пришлось искать в /usr/local....imperio wrote:USER - это ник вашего пользователя, у которого доменCode: Select all
v-rebuild-web-domains USER