nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

说明80端口被占用了。解决方法如下:

1、将进程杀死后,启动nginx。

fuser -k 80/tcp

 

2、将进程杀死后,启动nginx。

[root@localhost /]#ps -A | grep nginx 
[root@localhost /]#kill -9 pid1
[root@localhost /]#kill -9 pid2

 

重启

[root@localhost /]# whereis ngnix
ngnix:[root@localhost/]# 
[root@localhost /]# find / -name nginx 
/usr/local/src/nginx/sbin/nginx
[root@localhost /]# find / -name nginx.conf
/usr/local/src/nginx/conf/nginx.conf
[root@localhost /]# /usr/local/src/nginx/sbin/nginx -c /usr/local/src/nginx/conf/nginx.conf
[root@localhost/]# nginx -s reload

 

你可能感兴趣的