ubuntu重启apache2服务报错

安装了apache2,重启apache2的服务的时候,却报错:

siutung@siutung:/etc/apache2# sudo service apache2 restart

* Stopping web server apache2

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


解决:
进入/etc/apache2目录,修改httpd.conf文件为如下内容(原httpd.conf文件为空):

ServerName localhost
原文地址:https://www.cnblogs.com/mumue/p/2941208.html