AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.2. Set the 'ServerName' directive globally to suppress this message


1.这个异常是在apache2重启时出现的

2.解决方式

vim /etc/apache2/apache2.conf
#在文件最后添加一行
ServerName localhost:80
#然后保存并重启Apache2
service apache2 restart


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM