请教:网站80端口的页面出不来,着急!!!!

王朝厨房·作者佚名  2007-01-05
宽屏版  字体: |||超大  

Linux操作系统,在rc.local中设置了开机启动Apache

但是发现reboot机器后,Apache并没有启动,手动启动,出现如下提示:

[root@intranet bin]# apachectl start

[Wed Jul 30 11:51:27 2003] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

/usr/sbin/apachectl start: httpd started

我按照提示,将ServerName激活,并分别改成 127.0.0.1/localhost/本地IP,均不见效,请问这是为什么呢?

很着急,希望尽快得到答复,谢谢各位DX了~~~~

小豆冰棍 回复于:2003-07-30 12:44:20

是你的httpd.conf没有配置吧?!

vi httpd.conf

ServeName www.youdomain.com

vi /etc/hosts

www.youdomain.com your ip address

Maggiwjj 回复于:2003-07-30 13:04:19

[quote:9241fb3bca="小豆冰棍"]是你的httpd.conf没有配置吧?!

vi httpd.conf

ServeName www.youdomain.com

vi /etc/hosts

www.youdomain.com your ip address[/quote:9241fb3bca]

谢谢小豆的回复,我改的ServerName就是httpd中的设置,在vi /etc/hosts中写的是:

127.0.0.1 intranet localhost.localdomain localhost

那请问,我在httpd.conf中 ServerName 该怎么写呢???

我已经试过了:

ServerName 127.0.0.1

ServerName localhost

ServerName intranet

ServerName 本地IP

可是都不行啊,这是为什么呀????

....

大家救救我吧?。。。。。

小豆冰棍 回复于:2003-07-30 14:00:13

httpd.conf中:

ServerName www.sina.com ---你的域名,不是ip address

vi /etc/hosts ---添加

192.168.2.4 www.sina.com ---就是这个形式的!

zhangweibo 回复于:2003-07-30 15:58:36

http://www.linuxaid.com.cn/tips/4/7/473650852.shtml

tianci3982730 回复于:2003-07-31 19:43:47

是你已经开了httpd服务吧?

chkconfig --level 35 httpd off

/etc/rc.d/init.d/httpd stop

然后在./apachectl start

Maggiwjj 回复于:2003-07-31 20:00:51

tianci3982730 :

我明白你的意思了,严重感谢

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有