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:
- iptables -P OUTPUT ACCEPT
- Using the service iptables save to save, iptables default saved to a file in the / etc / sysconfig directory.
(End)