问题:
# systemctl start httpd
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
解决思路:
1、如果是通过配置本地yum源安装apache服务启动报错,可能是存在当前Linux系统的进程被默认端口(80)占用的情况,那么就可以通过修改httpd的配置文件中的端口来解决。
2、或者是直接停止当前进程重启httpd。
解决方法:
方法1:
# vim /etc/httpd/conf/httpd.conf
将 Listen 80改为Listen 8080
方法2:
# lsof -i:80 (如果没有修改则默认端口号为80)
# systemctl stop 进程名
# systemctl restart httpd