我刚刚在我的Ubuntu(8.04)盒子上为nginx安装了乘客。现在“sudo /etc/init.d/nginx restart”失败并出现以下错误:
Restarting nginx: [emerg]: bind() to 0.0.0.0:3000 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:3000 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:3000 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:3000 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:3000 failed (98: Address already in use)
[emerg]: still could not bind()
nginx.
我安装了乘客后更新了..init.d / nginx配置指向/ opt / nginx,所以一切都会好的。
如果我使用“sudo killall nginx”终止进程并尝试启动nginx,它可以正常工作,但重启不起作用。
答案 0 :(得分:1)
忽略
nginx: [warn] conflicting server name "69.162.95.11" on 69.162.95.11:80, ignored
这不是错误只是警告69.162.95.11不是共享IP 关于
nginx: [emerg] bind() to 69.162.95.14:80 failed (98: Address already in use)
重新启动Nginx将解决此问题,如果没有,那么在tweak设置下检查没有ssl端口。安装后,无ssl端口应为8081。 大师 02-12-2011,01:42 AM 从apache或ltespeed关闭端口80 并打开nginxcp作为端口80
答案 1 :(得分:1)
在我的情况下,apache已经安装并且正在使用端口;所以我刚刚做了:
killall -9 apache2
也许在您的情况下是另一个软件,您可以使用此命令来检查哪些端口正在侦听请愿
netstat -a | egrep 'Proto|LISTEN'