Ali cloud the issue not visit the site

web service in the cloud Ali ECS server deployment can not access the most common causes of problems are two:

1, we need to set ECS server security group policy.

Log Ali cloud - "to enter the cloud server ecs

 

Add the appropriate port.

2, the server firewall is not open ports Website

solve:

(1) View can be accessed via iptables -nL port command;

(2) open port (eg: 8880)

  iptables -I INPUT -p tcp --dport 8880 -j ACCEPT

 

If the / etc / sysconfig / iptables does not exist, reason: in linux newly installed system, a firewall is disabled by default out, generally do not have any firewall policy configuration too, all there is no / etc / sysconfig / iptables file.

solve:

  1. iptables -P OUTPUT ACCEPT
  2. Using the service iptables save to save, iptables default saved to a file in the / etc / sysconfig directory.

(End)

 

Published 44 original articles · won praise 11 · views 20000 +

Guess you like

Origin blog.csdn.net/LUCKWXF/article/details/104341445