我安装httpd 2.4.10-2.fc20并运行:
$ systemctl -l | grep httpd.*running
httpd.service loaded active running The Apache HTTP Server
Run Code Online (Sandbox Code Playgroud)
...并听:
$ netstat -pant | egrep 'PID|httpd'
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 29709/httpd
Run Code Online (Sandbox Code Playgroud)
如果从这台 Linux 机器上的本地浏览器访问,它会按预期响应。
尝试在我的 Intranet 中的 Windows 机器上从 FF 访问它时出现网络超时。 ssh连接(包括 Xming)就像一个魅力,所以它显然不是网络问题。我没有在此 Windows 上运行可以阻止某些内容的个人防火墙。
我已经看到Apache 监听,但没有响应,但这没有帮助。我禁用了iptables:
$ systemctl status iptables
iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled)
Active: inactive (dead) …Run Code Online (Sandbox Code Playgroud)