启动apache遇到错误:
Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
httpd not running, trying to start
1、
进入apache的安装目录:(视个人安装情况而不同)
cd /usr/local/apache24/conf
2、
编辑httpd.conf文件,搜索(搜索:/你要搜索的字符串)"#ServerName",添加ServerName localhost:80
#ServerName www.example.com:80
ServerName localhost:80
3、再重启apapche即可
/usr/local/apache24/bin/apachectl restart