在尝试链接mysqld.service后破解了Apache

时间:2015-02-15 22:40:12

标签: apache fedora mysql

在我的fedora服务器上,任何时候我都要重启apache,之后我必须手动重启mysqld。我读到这可以通过创建一个链接来解决:

    ln -s '/usr/lib/systemd/system/mysqld.service' '/etc/systemd/system/multi-user.target.wants/mysqld.service'

输入此命令并重新启动Apache后,它将无法加载并处于失败状态。

    httpd.service - The Apache HTTP Server
    Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
    Active: failed (Result: exit-code) since Sun 2015-02-15 17:21:22          EST; 6s ago
    Process: 3904 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop (code=exited, status=1/FAILURE)
    Process: 3902 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
    Status: "Total requests: 8; Current requests/sec: 0; Current traffic:   0 B/sec"

    Feb 15 17:21:22 pbcja httpd[3902]: httpd: Syntax error on line 356 of /etc/httpd/conf/httpd.conf: Syntax error on line 22 of /etc/httpd/conf.d/ph.../IfModule>
    Feb 15 17:21:22 pbcja systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
    Feb 15 17:21:22 pbcja httpd[3904]: httpd: Syntax error on line 356 of /etc/httpd/conf/httpd.conf: Syntax error on line 22 of         /etc/httpd/conf.d/ph.../IfModule>
    Feb 15 17:21:22 pbcja systemd[1]: httpd.service: control process exited, code=exited status=1
    Feb 15 17:21:22 pbcja systemd[1]: Failed to start The Apache HTTP Server.
    Feb 15 17:21:22 pbcja systemd[1]: Unit httpd.service entered failed state.

我该怎么做才能解决这个问题?非常感谢任何帮助,谢谢!

0 个答案:

没有答案