如何打开的EC2实例Web服务器端口 [英] How to open a web server port on EC2 instance
问题描述
我运行的CherryPy web服务器 0.0.0.0:8787
在一个EC2实例。
I'm running a CherryPy web server at 0.0.0.0:8787
on an EC2 instance.
我可以通过当地的的wget
EC2的机器上连接到Web服务器,但我无法从我自己的远程机器达到实例(我通过连接到EC2 SSH)。
I can connect to the web server via local wget
on the EC2 machine, but I can't reach the instance from my own remote machine (I connect to EC2 via ssh).
我需要打开端口8787来远程访问Web服务器?如果是这样,这可怎么办呢?另外,我可以使用EC2实例的公网IP的呢?
Do I need to open up port 8787 to access the web server remotely? If so, how can this be done? Also, can I use the public IP of the EC2 instance for this?
在此先感谢您的帮助!
推荐答案
按照说明上这个答案只是而是采用了下拉,输入端口范围一则添加规则的端口(8787)。
Follow the steps that are described on this answer just instead of using the drop down, type the port (8787) in "port range" an then "Add rule".
这篇关于如何打开的EC2实例Web服务器端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!