0
À l'étude

Configuration Ok but Fails to Start

Crazy Raisin il y a 7 ans mis à jour il y a 7 ans 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
À l'étude
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 ~]#