我在Google Cloud(Debian 9)上安装了虚拟机实例,并尝试运行Apache服务器 . 默认情况下,端口80正忙,我在配置文件端口80中更改为81.现在我尝试访问外部IP端口81,但无法访问站点 .
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:8998 0.0.0.0:* LISTEN 228/python
tcp 0 0 0.0.0.0:65001 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 238/python
tcp 0 0 0.0.0.0:81 0.0.0.0:* LISTEN 3070/apache2
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 37/sshd
tcp 0 0 127.0.0.1:36378 0.0.0.0:* LISTEN 2982/sshd: edward
tcp 0 0 0.0.0.0:26 0.0.0.0:* LISTEN -
tcp6 0 0 :::22 :::* LISTEN 37/sshd
tcp6 0 0 :::26 :::* LISTEN -
我检查了Google Cloud上的article以及有关stackoverflow的类似问题,我认为主要问题可能出在防火墙设置中,但此设置我已经更改并重新启动了apache:
default-allow-http http-server IP ranges: 0.0.0.0/0 tcp:80,tcp:81 All 1000 default
知道我需要更改/仔细检查这种情况吗?