启动apache时出现httpd: Could not reliably determine the server
来源:互联网 发布:c程编程分解质因数 编辑:程序博客网 时间:2024/05/20 08:45
启动apache时出现
[root@centos apache2]#sudo /etc/init.d/apache2 restart
httpd: Could not reliably determine the server's fully qualified domain name, using 121.10.40.155 for ServerName
现在提供该问题的解决方法
1)进入apache配置文件的目录:(视个人安装情况而不同)
[root@centos /]# cd /etc/httpd //我安装时配置文件所在的目录为/etc/httpd
2)编辑httpd.conf文件,搜索"#ServerName",添加ServerName localhost:80
[root@centos httpd]# ls
conf.d extra httpd.conf magic mime.types original
[root@centos httpd]# vi httpd.conf
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName www.example.com:80
更改为:
ServerName localhost:80
3)再重新启动apache 即可。
[root@centos httpd]#sudo /etc/init.d/apache2 restart
OK,启动成功啦!
- 启动apache时出现httpd: Could not reliably determine the server
- apache无法启动starting httpd: httpd:could not reliably determine the server\'s fully qualified
- apache 出现错误 /usr/local/apache2/bin/apachectl start httpd: Could not reliably determine the server
- apache 启动httpd.exe 报错 Could not reliably determine the server's fully qualified
- Apache启动"httpd: Could not reliably determine the server's fully qualified domain name, using 127.0."
- apache 启动httpd.exe 报错 Could not reliably determine the server's fully qualified
- 启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name
- 启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name
- 启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name
- 启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name
- 启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name
- 启动httpd时,Could not reliably determine the server's fully qualified domain name
- apache重启出现 httpd: Could not reliably determine the server's fully qualified domain name错误解决方法
- Linux上编译安装Apache出现httpd: Could not reliably determine the server's fully qualified domain name
- 解决apache启动错误"httpd:Could not reliably determine..."
- 解决apache启动错误"httpd:Could not reliably determine..."
- 解决apache启动错误 AH00558: httpd: Could not reliably determine...
- 解决apache启动错误"httpd:Could not reliably determine..."
- java中TextArea和JTextArea的自动换行和滚动条
- 算法导论之桶排序
- 在ASP.NET中设置html文件的访问验证
- linux chmod命令
- 微信公众号利用face++做一个人脸识别功能
- 启动apache时出现httpd: Could not reliably determine the server
- JSP入门及MyEclipse的使用
- DevExpress中的lookupedit的使用方法详解
- LINUX下挂载exfat格式u盘或移动硬盘
- 微信公众号如何接受图片与发送图片
- POJ 3468 区间查询区间修改 伸展树
- CocoaPods安装和使用教程
- Hibernate4实战之Hibernate4注解零配置
- makefile1