简体   繁体   English

在ec2亚马逊实例上的ubuntu服务器上安装了指示灯,但仍无法通过运行Apache的浏览器访问服务器。 为什么?

[英]Installed lamp on ubuntu server on an ec2 amazon instance, still can't access server through browser with apache running. Why?

I started an instance on amazon ec2, ami is ubuntu 14.04. 我在Amazon EC2上启动了一个实例,AMI是Ubuntu 14.04。 I followed the steps on https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html exactly up until "Transferring Files to Your Linux Instance Using the PuTTY Secure Copy Client" Since I don't need to put files on there just yet. 我完全按照https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html上的步骤进行操作,直到“使用PuTTY Secure Copy客户端将文件传输到Linux实例”为止,因为我不需要将文件放在那里。 Then I followed the following: https://help.ubuntu.com/community/ApacheMySQLPHP . 然后,我遵循以下内容: https : //help.ubuntu.com/community/ApacheMySQLPHP

"To install the default LAMP stack in Ubuntu 10.04 and above First refresh your package index... “要在Ubuntu 10.04及更高版本中安装默认的LAMP堆栈,请首先刷新您的软件包索引...

$ sudo apt-get update

... and then install the LAMP stack: ...然后安装LAMP堆栈:

$ sudo apt-get install lamp-server^

Mind the caret (^) at the end. 最后注意插入符号(^)。 "

After that I tried 之后,我尝试

sudo /etc/init.d/apache2 restart

After which ubuntu said: httpd (pid 5549) already running 之后ubuntu说: httpd (pid 5549) already running

Yet when I try to browse with chrome to the public ip which shows in the amazon console I get 但是,当我尝试使用Chrome浏览到显示在亚马逊控制台中的公共IP时,我得到了

This webpage is not available

ERR_CONNECTION_TIMED_OUT

In my browser. 在我的浏览器中。 What am I doing wrong? 我究竟做错了什么?

check your security group settings. 检查您的安全组设置。 What are the inbound rules? 有哪些入站规则? You need to add the IP(s) from where you are opening the web browser in the inbound rules. 您需要在入站规则中从打开Web浏览器的位置添加IP。 Also, check whether you are using private IP or public IP on the browser. 另外,请检查您在浏览器上使用的是私有IP还是公共IP。 You need to use public IP. 您需要使用公共IP。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS EC2 Apache Server正在运行,无法ping /无法通过Web服务器访问 - AWS EC2 Apache Server running, can't ping/ can't reach through web server Apache 服务器无法在 Amazon 服务器 EC2 上运行 - Apache server not working on Amazon server EC2 无法连接在 Amazon EC2 上运行的 apache - Can't connect apache running on Amazon EC2 Amazon EC2 - Apache 服务器重启问题 - Amazon EC2 - Apache server restart issue 另一台 Web 服务器已在运行。 XAMPP 阿帕奇 [UBUNTU] - Another web server is already running. XAMPP apache [UBUNTU] 可以ping ec2服务器(ubuntu / apache),但没有收到来自HTTP请求的响应 - Can ping ec2 server (ubuntu/apache) but don't get response from http request 如何在ubuntu Amazon EC2实例上运行apache的多个实例 - how to run multiple instances of apache on ubuntu amazon ec2 instance 如何设计用于设置在全新AWS EC2 Ubuntu实例上运行的apache Web服务器的启动脚本? - How do I design a Bootup script for setting up an apache web server running on a brand new AWS EC2 Ubuntu instance? 具有apache + mod_wsgi(带有ubuntu的Amazon EC2服务器)的单个域上的Django-CMS和LFS - Django-CMS and LFS on single domain with apache+mod_wsgi (amazon ec2 server with ubuntu) 无法从公用IP访问EC2实例上的Rails服务器 - Can't Access Rails Server on EC2 Instance from Public IP
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM