ubuntu 中重启apacher2服务的时候提示"AH00558 : apache2: Could not reliably determine the server's fully qualified domain name,using127.0.1.1. Set the 'ServeName' directive globally to suppress this message”。
解决方案: 编辑/etc/apache2/apache2.conf文件,在文件后加上
# ServerName
ServerName 127.0.1.1
重启apache2服务。
sudo service apache2 restart
or
sudo /etc/init.d/apache2 restart