请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

Apache配置问题

您好老师,我按照您说的命令操作了
[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.
我上网百度了也不知道 该怎么办

正在回答 回答被采纳积分+3

2回答

编程浪子 2019-08-20 12:02:42

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

0 回复 有任何疑惑可以回复我~
编程浪子 2019-08-19 21:32:15

我的 意思是 执行 

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 21:54:27
问题已解决,确定采纳
还有疑问,暂不采纳
快速上手Linux 玩转典型应用
  • 参与学习       1663    人
  • 解答问题       572    个

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

了解课程
意见反馈 帮助中心 APP下载
官方微信