Linux系统Apache报错httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message

油嘴滑舌 / 2023-07-20 / 原文

解决办法:

在配置文件中加一句ServerName  localhost:端口号  

# echo "ServerName localhost:8068" >> /etc/httpd/conf/httpd.conf

重启Apache即可解决。