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