1.用apache搭建web,启动HTTP时出现
- [root@vm1 ~]# /etc/init.d/httpd restart
- Stopping httpd: [ OK ]
- Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName
解决办法
- [root@vm1 ~]# vim /etc/httpd/conf/
- httpd.conf magic
- [root@vm1 ~]# vim /etc/httpd/conf/httpd.conf
- 找到#ServerName www.example.com:80 把#去掉,再重启apache
- [root@vm1 ~]# /etc/init.d/httpd restart
- Stopping httpd: [ OK ]
- Starting httpd: [ OK ]
本文转自 369蓝宝 51CTO博客,原文链接:http://blog.51cto.com/3739387/1155530,如需转载请自行联系原作者