ubuntu下重启apache报错[ubuntu运维]

来源:赵克立博客 分类: Linux 标签:运维Linux命令Ubuntu发布时间:2018-11-20 15:55:02最后更新:2019-05-28 17:05:37浏览:705
版权声明:
本文为博主原创文章,转载请声明原文链接...谢谢。o_0。
更新时间:
2019-05-28 17:05:37
温馨提示:
学无止境,技术类文章有它的时效性,请留意文章更新时间,如发现内容有误请留言指出,防止别人"踩坑",我会及时更新文章

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppr

image.png

解决方法

sudo gedit /etc/apache2/httpd.conf

默认会打开一个空白的文件,输入下面代码保存退出

ServerName localhost

重启apache

 sudo /etc/init.d/apache2 restart



微信号:kelicom QQ群:215861553 紧急求助须知
Win32/PHP/JS/Android/Python