0
En revisión

Configuration Ok but Fails to Start

Crazy Raisin hace 9 años actualizado hace 9 años 2
I am not sure why this is happening:

[root@server ~]# service nginx restart
Checking configuration of nginx: [FAILED]
[root@server ~]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful


Also Ajenti shows that Nginx failed to bind to port 0.0.0.0:80
En revisión
See which process took the port with netstat -tnlp | grep 80
[root@server ~]# netstat -tnlp | grep 80
tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 6874/python
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 8375/nginx
[root@server ~]#