0

当我尝试启动 nginx 时,会发生这种情况。不知道我需要做什么。阿帕奇关闭。

sudo nginx 
nginx: /usr/local/lib/libxslt.so.1: no version information available (required by nginx)
nginx: /usr/local/lib/libxslt.so.1: no version information available (required by 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()
4

1 回答 1

1

看来真正的问题是“地址已在使用中”。您可能已经将 Apache 或其他 Nginx 实例绑定到端口 80。您可以使用lsof -i tcp:80来检查。

链接器警告就是:警告。很可能当你编译 Nginx 时,它链接到不同版本的 libxslt(可能在 /usr/lib 下),但在运行时,它会在 /usr/local/lib 下找到版本。无论如何,它不应该阻止 Nginx 运行。

于 2012-06-24T05:06:53.620 回答