Problem description
Set the security group rule for the corresponding port on ECS management control, but it does not take effect.
Cause
The configuration of the security group is incorrect. As a result, the rules are not applied.
Solution
- Perform the following procedure to check whether the corresponding port is listening on the server.
- In Linux: run the
netstat-nltpexpgrep8080
command to check whether Port 8080 is being listened on. - In Windows: run the
netstat-anode findstr8080
command to check whether Port 8080 is listened on.
Note: this article takes port 8080 as an example. The site is subject to the actual environment.
- In Linux: run the
- Check whether the firewall on the server blocks the ports that need to be opened.
- Check for errors in setting priorities for security group rules. For more information, see Security Group Overview.
Application scope
- Elastic Compute Service