黄智勇 发表于 2018-11-21 08:36:31

apache2问题

  再启动Apache2时遇到如下问题:
  httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
  解决办法:
  这问题是沒有在 /etc/httpd/conf/httpd.conf 中設定 ServerName


  vi /usr/local/apache2/conf/httpd.conf
  
最简单的,修改httpd.conf文件,增加:(大概在102行位置)
ServerName www.example.com:80

  再次启动就正常了!
  




页: [1]
查看完整版本: apache2问题