網絡yum 安裝 httpd 出現的問題Could not reliably determine the server's fully qualified domain name

Could not reliably determine the server's fully qualified domain name

在使用網絡yum源安裝httpd的時候出現了上面的報錯,進入配置文件httpd.conf

[root@IP-65 ~]# cd /etc//httpd/conf

[root@IP-65 conf]# ls

httpd.conf  magic

[root@IP-65 conf]#vim httpd.conf

 276 #ServerName www.example.com:80

 277 ServerName localhost:80    添加前面一行,再執行就不會出現上述報錯。


[root@IP-65 conf]# service httpd restart

Stopping httpd:                                            [  OK  ]

Starting httpd:                                            [  OK  ]


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章