[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]#
测试后就正常了