简体   繁体   English

访问 AWS ubuntu 机器映像上的本地服务器

[英]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.

相关问题 在本地机器上从 ubuntu (AWS EC2) 读取文件? - reading in a file from ubuntu (AWS EC2) on local machine? 访问在主机Windows机器上的Virtual Box Ubuntu上运行的Web服务器 - Access web server running on Virtual box ubuntu on host windows machine 从本地客户端计算机向Ubuntu服务器上的Flask服务器发送和接收数据 - Send and receive data from local client machine to a flask server on an Ubuntu server 无法从其他Windows计算机访问本地ubuntu服务器上的Django服务器 - Django server on local ubuntu server cannot be reached from another windows machine 本地计算机和AWS之间的多处理? - Multiprocessing between local machine and AWS? flask bokeh bokeh服务器-图不渲染(ubuntu),但在本地计算机上工作 - flask bokeh server- figure does not render (ubuntu) but works on local machine Selenium 在 Amazon Ubuntu 服务器(EC2)没有打开某些链接,但在本地机器上工作正常 - Selenium on Amazon Ubuntu Server (EC2) is not opening certain links but works fine on local machine 从ubuntu虚拟机(virtualbox)从本地sql-server读取表 - Read table from local sql-server from an ubuntu virtual machine (virtualbox) 我已经在 ubuntu 机器上安装了 python 软件我想在 AWS EC2 上的 ubuntu 服务器上创建多个登录 - I have installed python software on ubuntu machine i want to create multiple logins on ubuntu server on AWS EC2 如何在 AWS EC2 上运行 Python 代码并将 csv 文件从服务器写入我的本地计算机? - How to run a Python code on AWS EC2 and write a csv file from the server to my local machine?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM