LAMP安装 完成后不能连接 http://localhost 或 http://127.0.0.1

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
x123848636
帖子: 18
注册时间: 2009-09-20 21:39

LAMP安装 完成后不能连接 http://localhost 或 http://127.0.0.1

#1

帖子 x123848636 » 2015-01-14 21:45

情况描述 Ubuntu 使用sudo tasksel 进行安装的LAMP 教程地址http://wiki.ubuntu.org.cn/index.php?tit ... A.E7.A1.80

系统安装在VMware中

安装完成后刻意连接到如下图片
附件
使用以太网ip地址连接到的图片
使用以太网ip地址连接到的图片
onlylove
论坛版主
帖子: 5370
注册时间: 2007-01-14 16:23

Re: LAMP安装 完成后不能连接 http://localhost 或 http://127.0.0.1

#2

帖子 onlylove » 2015-01-14 22:24

你要在虚拟机里面访问127.0.0.1啊,你没在windows里面访问吧,如果是虚拟机里面不能访问,大概可能是/etc/hosts的问题,也有可能是hostname的问题
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
x123848636
帖子: 18
注册时间: 2009-09-20 21:39

Re: LAMP安装 完成后不能连接 http://localhost 或 http://127.0.0.1

#3

帖子 x123848636 » 2015-01-15 8:37

onlylove 写了:你要在虚拟机里面访问127.0.0.1啊,你没在windows里面访问吧,如果是虚拟机里面不能访问,大概可能是/etc/hosts的问题,也有可能是hostname的问题
你的意思是不是不在同一网段不能进行访问是这个意思把!
我用ifconfig 查看了一下网关确实不一样。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: LAMP安装 完成后不能连接 http://localhost 或 http://127.0.0.1

#4

帖子 poloshiao » 2015-01-15 8:44

安装完成后刻意连接到如下图片
使用以太网ip地址连接到的图片
无标题.png
是在 VMware 裡的 Guest Ubuntu 裡面
使用 Browser ?
x123848636
帖子: 18
注册时间: 2009-09-20 21:39

Re: LAMP安装 完成后不能连接 http://localhost 或 http://127.0.0.1

#5

帖子 x123848636 » 2015-01-15 9:07

poloshiao 写了:
安装完成后刻意连接到如下图片
使用以太网ip地址连接到的图片
无标题.png
是在 VMware 裡的 Guest Ubuntu 裡面
使用 Browser ?
我把系统装在了VMware里面 是Ubuntu service 的系统
在windows 浏览器里访问的
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: LAMP安装 完成后不能连接 http://localhost 或 http://127.0.0.1

#6

帖子 poloshiao » 2015-01-15 9:26

http://localhosthttp://127.0.0.1
在windows 浏览器里访问的
http://localhosthttp://127.0.0.1
會在 windows 本機中找
是Ubuntu service 的系统
指 Ubuntu server ?
可以在 Ubuntu server 的電腦裡 試試 文字瀏覽器 w3m

參閱
http://www.howtogeek.com/103574/how-to- ... -with-w3m/
http://manpages.ubuntu.com/manpages/tru ... w3m.1.html
tusheng
帖子: 743
注册时间: 2007-09-18 8:45

Re: LAMP安装 完成后不能连接 http://localhost 或 http://127.0.0.1

#7

帖子 tusheng » 2015-01-24 18:56

楼主在win里去访问linux上的apache默认页,是不能用127.0.0.1这个地址的。

如果楼主的虚拟机是桥接模式,那么用同网段ip来访问
回复