centOS nginx提示still could not bind()

xiaoxiao2021-03-01  9

[html] view plain copy 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端口): [html] view plain copy netstart -ntlp|grep 80   查看是那个程序占用了nginx的端口,杀掉占用程序的端口即可,如果是nginx本身占用了改端口,则停止nginx服务,重新启动即可!
转载请注明原文地址: https://www.6miu.com/read-3200053.html

最新回复(0)