阿里云服务器在安装apache或nginx后,不能通过公网访问网页,
可通过SSH远程连接,在终端窗口中输入如下命令:
(a) curl 127.0.0.1
(b) curl 公网IP
若a有输出,b则提示超时或拒绝访问,原因是阿里云服务器设置安全组,要在本实例安全组的“入方向”选项中添加相关协议和端口
若a、b均无输出,则是端口被占用