Job for httpd.service failed because the control process exited with error code.

安装Linux Apache出错显示如下:

[root@localhost home]# systemctl restart httpd
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

发现端口80被nginx占用了

[root@localhost home]# docker ps
CONTAINER ID   IMAGE              COMMAND             CREATED      STATUS                PORTS                                                                                                           NAMES
6fe7341f475a   gitlab/gitlab-ce   "/assets/wrapper"   2 days ago   Up 2 days (healthy)   0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp, 0.0.0.0:222->22/tcp, :::222->22/tcp   npy_gitlab
[root@localhost home]# netstat -antlp |grep 80
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      105211/docker-proxy 
tcp        0      0 192.168.85.145:60524    211.68.71.120:80        TIME_WAIT   -                   
tcp        0      0 192.168.85.145:22       192.168.85.1:59040      ESTABLISHED 88058/sshd: root@pt 
tcp6       0      0 :::80                   :::*                    LISTEN      105218/docker-proxy 
[root@localhost home]# 

我不想修改nginx的端口,因此就修改Apache的端口吧
修改httpd.conf文件

vim /etc/httpd/conf/httpd.conf

Job for httpd.service failed because the control process exited with error code._第1张图片
然后保存退出重新启动就可以啦

[root@localhost conf]# systemctl start httpd
[root@localhost conf]# systemctl restart httpd
[root@localhost conf]# 

你可能感兴趣的:(运维,linux,运维,服务器)