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

1.用apache搭建web,啓動HTTP時出現

  1. [root@vm1 ~]# /etc/init.d/httpd restart 
  2. Stopping httpd:                                            [  OK  ] 
  3. Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName 


解決辦法

  1. [root@vm1 ~]# vim /etc/httpd/conf/ 
  2. httpd.conf  magic        
  3. [root@vm1 ~]# vim /etc/httpd/conf/httpd.conf  
  4. 找到#ServerName www.example.com:80   把#去掉,再重啓apache 
  5. [root@vm1 ~]# /etc/init.d/httpd restart 
  6. Stopping httpd:                                            [  OK  ] 
  7. Starting httpd:                                            [  OK  ]

 

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