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]#
测试后就正常了
启动 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]#
测试后就正常了
相关文章推荐
- ThinkPHP框架搭建及常见问题(XAMPP安装失败、Apache/MySQL启动失败)
- ThinkPHP框架搭建及常见问题(XAMPP安装失败、Apache/MySQL启动失败)
- 使用Apache Axis部署 Web服务时的常见问题及其解决方法
- 编译安装apache,常见问题整理
- XAMPP环境搭建与Apache无法启动问题
- 问题:XAMPP中Apache启动失败
- Apache,Mysql,php 编译参数 及 常见编译问题
- warmserver apache无法启动,mysql无法打开的问题
- 五种常见Windows服务启动问题的排错方法
- Win7下XAMPP集成环境中Apache无法启动的问题解决
- Apache连接PHP后无法启动问题解决思路
- Apache连接PHP后无法启动问题解决思路
- 关于启动Appach时出现Apache shutdown unexpectedly问题的解决方法
- Centos上VNC 启动和关闭 常见问题汇总
- Apache 启动出错的问题
- Tomcat常见启动问题
- Unix平台上OUI启动常见问题
- Apache HTTP Server 80端口占用引致的不能启动问题
- 安装apache服务出错,无法启动此程序,因为计算机中丢失VCRUNTIME140.dll 尝试重新安装此程序以解决此问题
- Apache启动问题的解决