[英]Access local server on AWS ubuntu machine image
I have created a local server at 0.0.0.0:8000 on my ubuntu virtual machine on AWS with the following command我使用以下命令在 AWS 上的 ubuntu 虚拟机上的 0.0.0.0:8000 创建了一个本地服务器
python -m SimpleHTTPServer
This gave me the following response这给了我以下回复
Serving HTTP on 0.0.0.0 port 8000 ...
How can access this server from the browser?如何从浏览器访问这个服务器?
If you are on the host that is running the web server, go to: http://localhost:8000
如果您在运行 Web 服务器的主机上,请访问:
http://localhost:8000
If you are on another computer, access the host via its IP address: http://IP-ADDRESS:8000
(eg http://54.22.18.93:8000
)如果您在另一台计算机上,请通过其 IP 地址访问主机:
http://IP-ADDRESS:8000
(例如http://54.22.18.93:8000
)
If accessing from another computer, your Security Group will need to allow inbound access on port 8000.如果从另一台计算机访问,您的安全组将需要允许端口 8000 上的入站访问。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.