我正在运行 ubuntu 并且运行 apache,但是,我无法在内部 ping 到我的静态 IP,也无法http://207.40.XXX.XX使用我的静态 IP浏览Web 服务器。我只能 ping/browse localhost, 127.0.0.1, and 192.168.0.120 OR 207.40.XXX.XX只能从外部世界。
# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 my-server.myhost.com my-server
# hostname
my-server
# netstat -tapn
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:29754 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
Run Code Online (Sandbox Code Playgroud)
任何想法为什么这不起作用?