ubuntu下重启apache报错[ubuntu运维]
版权声明:
本文为博主原创文章,转载请声明原文链接...谢谢。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
解决方法
sudo gedit /etc/apache2/httpd.conf
默认会打开一个空白的文件,输入下面代码保存退出
ServerName localhost
重启apache
sudo /etc/init.d/apache2 restart