centOS6.5 nginx提示still could not bind()

来源:互联网 发布:c51单片机 编辑:程序博客网 时间:2024/06/01 15:17

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

首先在配置文件中查看nginx使用的端口,然后输入以下命令(我的是80端口):

netstart -ntlp|grep 80
查看是那个程序占用了nginx的端口,杀掉占用程序的端口即可,如果是nginx本身占用了改端口,则停止nginx服务,重新启动即可!
0 0
原创粉丝点击