我刚刚在我的 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,它工作正常,但重启不起作用。