Apache仮想ホストを作成するときにこのエラーを解決する方法は?

Apache仮想ホストを作成するときにこのエラーを解決する方法は?

新しいサーバーにLAMPをインストールし、Apache仮想ホストを作成したいと思います。まず、コマンドを使用してCentOS 7にアップデートをインストールしましたsudo yum updates。次に、サーバーの更新後にLAMPスタックをインストールし、Apache仮想ホストを作成し続けました。 Apache仮想ホストを作成した後、コマンドを介してApacheを再起動するとsudo apachectl restartエラーが発生します。

誤った結果

Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

次のコマンドを入力しようとするとエラーが発生します。

注文する:systemctlステータスhttpd.service

エラーの結果:

● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2017-09-04 07:06:47 EDT; 47s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 13017 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 13016 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 13016 (code=exited, status=1/FAILURE)

Sep 04 07:06:47 example.com systemd[1]: Starting The Apache HTTP Server...
Sep 04 07:06:47 example.com systemd[1]: httpd.service: main process exite...E
Sep 04 07:06:47 example.com kill[13017]: kill: cannot find process ""
Sep 04 07:06:47 example.com systemd[1]: httpd.service: control process ex...1
Sep 04 07:06:47 example.com systemd[1]: Failed to start The Apache HTTP S....
Sep 04 07:06:47 example.com systemd[1]: Unit httpd.service entered failed....
Sep 04 07:06:47 example.com systemd[1]: httpd.service failed.

Hint: Some lines were ellipsized, use -l to show in full.

この問題をどのように解決できますか?

ベストアンサー1

これまで私は見つけました

sudo systemctl restart httpd

どれよりも効果的です。

sudo systemctl restart httpd.service

いつも時間がかかるようで、いつも作業が完了するわけではありません。

おすすめ記事