0
Under review

Configuration Ok but Fails to Start

Crazy Raisin 5 years ago updated 5 years ago 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
Under review
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 ~]#