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  ]