fenr9

导航

修改apche的端口号为80后,重启不成功,怎么办

修改为80后提示如下

Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.

那么可能是端口被占用造成

 

1.在root权限下键入命令:查看80端口被什么占用了

# netstat -lnp | grep 80

2.杀死占用80端口的进程,例如,nginx为占用80端口的进程名称

键入命令

#pkill -9 nginx

杀死nginx的所有进程

 

3.再次重启http.conf即可

 

参照网址如下:

http://www.codes51.com/article/detail_109108.html

posted on 2016-04-21 11:06  fenr9  阅读(239)  评论(0编辑  收藏  举报