小编Nat*_*h J的帖子

nginx: [emerg] 在 mac 上绑定()到 0.0.0.0:8080 失败(48:地址已在使用中)

我是 Nginx 新手,在这里遇到了一些麻烦。

我正在使用Mac 操作系统nginx version: nginx/1.17.7.

我第一次下载 Nginx 是在不久前。那时,一切都很顺利。然后当我玩弄时nginx.conf,我不知何故搞砸了。所以,今天重新开始学习Nginx的时候,我把之前的所有文件都删除了,通过homebrew重新安装了。然后我希望有人能帮助我解决的问题就出现了。

初始化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)

我在网上搜索了这个问题。有很多答案,但要么这些解决方案适用于 Linux …

macos nginx

10
推荐指数
1
解决办法
2万
查看次数

标签 统计

macos ×1

nginx ×1