打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Ubuntu 下修改 Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 fo

在Ubuntu上安装Apache,每次重启,都会出现以下错误提示:

Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName

解决办法

修改 httpd.conf 文件

打开终端,输入以下命令:

sudo vim /etc/apache2/httpd.conf

默认情况下,这个是一个空文件,在文件中加入以下内容:

ServerName localhost

保存文件退出,再次重启apache,错误提示没有了。

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
AH00558: httpd: Could not reliably determine the server''s fully qualified domain name, usin
Apache2服务器Could not reliably determine the server's 问题解决
ubuntu重启apache2服务报错
Ubuntu 9.04上的XEN虚拟服务器(一) 安装XEN
How to Setup a DNS Server in Ubuntu
[Ubuntu]安裝LAMP Server+phpMyAdmin,在自己的電腦輕鬆架網站!(一)
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服