我正在尝试使用以下命令在 Mac OS X 上启动 nginx sudo nginx
它失败并出现以下错误
nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)
nginx: [emerg] still could not bind()
Run Code Online (Sandbox Code Playgroud)
我尝试通过使用停止 Apache 服务 sudo apachectl stop
这给我带来了以下错误
launchctl: Error unloading: …
Run Code Online (Sandbox Code Playgroud)