我刚刚在我的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,它运行正常,但重启不起作用.
最佳答案
直接无视(好了
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