macos - MacOSX 连接上的本地主机被拒绝

标签 macos nginx localhost firewall

我的应用程序通过我的 mac 上的 nginx 在本地主机端口 80 上运行了很长一段时间。最近我做了一些软件更新,并试图在不同的端口上运行其他应用程序,现在我无法在 localhost:80 上运行我的第一个应用程序。

我对从哪里开始感到非常困惑,但认为这是基于以下内容的防火墙问题:

Tims-MacBook-Pro-2:html TimPeterson$ telnet localhost 80
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying fe80::1...
telnet: connect to address fe80::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host 

将浏览器指向 http://localhost给这个 Oops! Google Chrome could not connect to localhost
想法?

最佳答案

你可能想跑

apachectl configtest

第一的。

关于macos - MacOSX 连接上的本地主机被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19594760/

相关文章:

如果特定域和特定 url,NGINX 重写 url

mysql - 在本地主机上运行 Rails 应用程序时出现问题

connection - cqlsh连接错误: Could not connect to localhost:9160

ubuntu - 如何在 Ubuntu 的本地主机上安装 SSL?

macos - NSTableView 带有 +/- 按钮,就像在系统偏好设置中仅使用 Interface Builder

objective-c - Mac OS X 上的图像处理入门

objective-c - 通过 Objective C 代码“显示包内容”

nginx - kubernetes 端口转发坚持 [::1]:8080->8080

nginx - Node.js 和 nginx SSL 握手失败

c# - 错误 :The preLaunchTask 'build' terminated with exit code 1