80端口被占用

启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name
[root@server httpd-2.2.4]# /usr/local/apache/bin/apachectl start
 
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

 

查看端口被谁占用了 netstat -pan | grep 80   然后删除占用端口的进程   kill 端口号    最后重启一下就KO了!

 

 

默认的访问根目录在/var/www/html下面

你可能感兴趣的:(端口)