Por que meu nginx falhou?

0
sudo journalctl -xn
-- Logs begin at Fri 2016-03-11 10:51:11 UTC, end at Fri 2016-03-11 11:21:33 UTC. --
Mar 11 11:21:12 server sudo[1095]: pam_unix(sudo:session): session opened for user root by chris(uid=0)
Mar 11 11:21:12 server systemd[1]: Starting A high performance web server and a reverse proxy server...
-- Subject: Unit nginx.service has begun with start-up
-- Defined-By: systemd

- Suporte: link

-- Unit nginx.service has begun starting up.
Mar 11 11:21:13 server nginx[1104]: nginx: [emerg] "fastcgi_pass" directive is duplicate in /etc/nginx/sites-enabled/def
Mar 11 11:21:13 server nginx[1104]: nginx: configuration file /etc/nginx/nginx.conf test failed
Mar 11 11:21:13 server systemd[1]: nginx.service: control process exited, code=exited status=1
Mar 11 11:21:13 server systemd[1]: Failed to start A high performance web server and a reverse proxy server.
-- Subject: Unit nginx.service has failed
-- Defined-By: systemd

- Suporte: link

- A unidade nginx.service falhou.

-- The result is failed.
Mar 11 11:21:13 server systemd[1]: Unit nginx.service entered failed state.
Mar 11 11:21:13 server sudo[1095]: pam_unix(sudo:session): session closed for user root
Mar 11 11:21:33 server sudo[1113]: chris : TTY=pts/0 ; PWD=/etc/nginx/sites-available ; USER=root ; COMMAND=/bin/journal
Mar 11 11:21:33 server sudo[1113]: pam_unix(sudo:session): session opened for user root by chris(uid=0)
    
por eekfonky 11.03.2016 / 12:32

1 resposta

0

Seu log descreve:

Mar 11 11:21:13 server nginx[1104]: nginx: [emerg] "fastcgi_pass" directive is duplicate in /etc/nginx/sites-enabled/def

Mar 11 11:21:13 server nginx[1104]: nginx: configuration file /etc/nginx/nginx.conf test failed

Seu arquivo de configuração não é válido, contém algum erro ("diretiva fastcgi_pass é duplicada"). Verifique e corrija!

    
por 11.03.2016 / 13:52

Tags