linux配置apache环境重启是遇到:
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
只需要在apache的配置文件 apache2.conf 里面添加这么一句话:
#打开配置文件 sudo vim /etc/apache2/apache2.conf #加上这一句 ServerName localhost:80
然后:
#重启Apache sudo service apache2 restart #出现 * Restarting web server apache2 [ OK ]