简体   繁体   中英

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

 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

If you are on another computer, access the host via its IP address: http://IP-ADDRESS:8000 (eg http://54.22.18.93:8000 )

If accessing from another computer, your Security Group will need to allow inbound access on port 8000.

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