您的位置:首页 > 运维架构 > Apache

APACHE启动的常见问题

2005-11-04 13:42 232 查看
[root@hlbbslinux root]# /etc/rc.d/init.d/httpd start
启动 httpd:httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

解决方法
查询
[root@hlbbslinux root]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       hlbbslinux      localhost
[root@hlbbslinux root]# more /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=hlbbslinux

然后
[root@hlbbslinux root]# vi /etc/httpd/conf/httpd.conf
ServerName hlbbslinux:80  <=========改动这里就搞定了  注意去掉前面的#

[root@hlbbslinux root]# /etc/rc.d/init.d/httpd start
启动 httpd:
[root@hlbbslinux root]# /etc/rc.d/init.d/httpd stop
停止 httpd:^[[A                                           [  确定  ]
[root@hlbbslinux root]# /etc/rc.d/init.d/httpd start
启动 httpd:                                               [  确定  ]
[root@hlbbslinux root]#
测试后就正常了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息