Apache配置问题

来源:7-1 Apache的安装

阿岩思密达

2019-08-19

您好老师,我按照您说的命令操作了
[imooc@www ~]$ systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2019-08-18 23:35:25 EDT; 2min 11s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 2194 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 2193 ExecStart=/usr/sbin/httpd KaTeX parse error: Expected 'EOF', got '然' at position 102: …tus=1/FAILURE) 然̲后执行了这个命令 [imooc… journalctl -xe
No journal files were found.
– No entries –
然后用这个命令sudo service httpd start 还是会报这个错误
[imooc@www ~]$ sudo service httpd start
Redirecting to /bin/systemctl start httpd.service
Job for httpd.service failed because the control process exited with error code. See “systemctl status httpd.service” and “journalctl -xe” for details.
我上网百度了也不知道 该怎么办

写回答

2回答

编程浪子

2019-08-20

你好,从课程群加我qq远程。

0
0

编程浪子

2019-08-19

我的 意思是 执行 

sudo service httpd start 然后会发现报错。

然后执行  systemctl status httpd.service  看错误信息截图出来

然后在执行 journalctl -xe 看错误信息截图出来


不然无法判断

0
1
阿岩思密达
[imooc@www ~]$ sudo service httpd start [sudo] password for imooc: Redirecting to /bin/systemctl start httpd.service Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details. [imooc@www ~]$ systemctl status httpd.service ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2019-08-19 09:52:13 EDT; 51s ago Docs: man:httpd(8) man:apachectl(8) Process: 2187 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE) Process: 2186 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Main PID: 2186 (code=exited, status=1/FAILURE) [imooc@www ~]$ journalctl -xe No journal files were found. -- No entries -- [imooc@www ~]$
2019-08-19
共1条回复

快速上手Linux 玩转典型应用

以主流CentOS 7 操作系统为例,系统讲解Linux,真实线上环境助你快速上手,独立配置运维服务器

1663 学习 · 572 问题

查看课程