情况描述 Ubuntu 使用sudo tasksel 进行安装的LAMP 教程地址http://wiki.ubuntu.org.cn/index.php?tit ... A.E7.A1.80
系统安装在VMware中
安装完成后刻意连接到如下图片
LAMP安装 完成后不能连接 http://localhost 或 http://127.0.0.1
-
- 帖子: 18
- 注册时间: 2009-09-20 21:39
-
- 论坛版主
- 帖子: 5370
- 注册时间: 2007-01-14 16:23
Re: LAMP安装 完成后不能连接 http://localhost 或 http://127.0.0.1
你要在虚拟机里面访问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");
}
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
-
- 帖子: 18
- 注册时间: 2009-09-20 21:39
Re: LAMP安装 完成后不能连接 http://localhost 或 http://127.0.0.1
你的意思是不是不在同一网段不能进行访问是这个意思把!onlylove 写了:你要在虚拟机里面访问127.0.0.1啊,你没在windows里面访问吧,如果是虚拟机里面不能访问,大概可能是/etc/hosts的问题,也有可能是hostname的问题
我用ifconfig 查看了一下网关确实不一样。
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: LAMP安装 完成后不能连接 http://localhost 或 http://127.0.0.1
是在 VMware 裡的 Guest Ubuntu 裡面安装完成后刻意连接到如下图片
使用以太网ip地址连接到的图片
无标题.png
使用 Browser ?
-
- 帖子: 18
- 注册时间: 2009-09-20 21:39
Re: LAMP安装 完成后不能连接 http://localhost 或 http://127.0.0.1
我把系统装在了VMware里面 是Ubuntu service 的系统poloshiao 写了:是在 VMware 裡的 Guest Ubuntu 裡面安装完成后刻意连接到如下图片
使用以太网ip地址连接到的图片
无标题.png
使用 Browser ?
在windows 浏览器里访问的
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: LAMP安装 完成后不能连接 http://localhost 或 http://127.0.0.1
http://localhost 或 http://127.0.0.1
會在 windows 本機中找
指 Ubuntu server ?是Ubuntu service 的系统
可以在 Ubuntu server 的電腦裡 試試 文字瀏覽器 w3m
參閱
http://www.howtogeek.com/103574/how-to- ... -with-w3m/
http://manpages.ubuntu.com/manpages/tru ... w3m.1.html
-
- 帖子: 743
- 注册时间: 2007-09-18 8:45
Re: LAMP安装 完成后不能连接 http://localhost 或 http://127.0.0.1
楼主在win里去访问linux上的apache默认页,是不能用127.0.0.1这个地址的。
如果楼主的虚拟机是桥接模式,那么用同网段ip来访问
如果楼主的虚拟机是桥接模式,那么用同网段ip来访问