How to configure direct http access to EC2 instance?

后端 未结 6 2054
面向向阳花
面向向阳花 2020-12-25 13:12

This is a very basic Amazon EC2 question, but I\'m stumped so here goes.

I want to launch an Amazon EC2 instance and allow access to HTTP on ports 80 and 8888 from a

6条回答
  •  眼角桃花
    2020-12-25 14:02

    Had to do the following:

    1) Enable HTTP access on the instance config, it wasn't on by default only SSH 2) Tried to do nodejs server, so port was bound to 80 -> 3000 did the following commands to fix that

    iptables -F
    iptables -I INPUT -p tcp --dport 80 -j ACCEPT
    sudo service iptables-persistent flush
    

提交回复
热议问题