简体   繁体   中英

aws EC2 linux unable to open inbound ports

I am trying to run a web server on an EC2 linux instance (free tier), so I followed the instructions to open the port but was unsuccessful getting it to work. My server is running locally and I can access it.

The steps I took are:

  1. Go to my security group.
  2. Add inbound rule: custom tcp, port 8080, from anywhere.
  3. I clicked saved.

However, it didn't seem to work. The only port that does work is 22. Just to verify, I tested on https://www.yougetsignal.com/tools/open-ports/

Anyone run into this problem before?

Since you can curl locally and you have added the inbound tcp rules in the security group, it is probably because of the firewall. Go to your instance, and edit your firewall to open the port 8080.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM