安装乘客后Nginx重启命令失败

Phi*_*ffs 7 passenger ubuntu-8.04 nginx

我刚刚在我的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.
Run Code Online (Sandbox Code Playgroud)

我在安装了乘客后更新了..init.d/nginx配置指向/ opt/nginx,所以一切都会好的.

如果我用"sudo killall nginx"杀死进程并尝试启动nginx,它运行正常,但重启不起作用.

小智 1

直接无视(好了

nginx: [warn] conflicting server name "69.162.95.11" on 69.162.95.11:80, ignored
Run Code Online (Sandbox Code Playgroud)

这不是错误,只是警告 69.162.95.11 未共享 IP 关于

nginx: [emerg] bind() to 69.162.95.14:80 failed (98: Address already in use) 
Run Code Online (Sandbox Code Playgroud)

只需重新启动 Nginx 即可解决此问题,如果没有,请在调整设置下检查无 ssl 端口。安装后,none ssl 端口应为 8081。maestro 02-12-2011, 01:42 AM 关闭 apache 或 ltespeed 的端口 80 并打开 nginxcp 作为端口 80