1.问题描述
使用ubentu安装apache2之后,想重启apache
sudo /etc/init.d/apache2 restart
报错
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.144.42.187. Set the 'ServerName' directive globally to suppress this message
2.解决方法
vi /etc/apache2/apache2.conf
在里面加上
ServerName localhost:80
即可