私はUbuntu 16.02を使用しています。私がしようとするとsudo service apache2 restart
、それは言う:
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
次に、と入力しjournalctl -xe
、リクエストします。
- -ユニットapache2.serviceが起動し始めました。 Jan 11 02:30:46 aleksandr-VirtualBox apache2 [8177]:/etc/init.d/apache2:1:/ etc / apache2 / envvars:envvars:not found Jan 11 02:30:46 aleksandr-VirtualBox apache2 [8177]:/etc/init.d/apache2:49:/ etc / apache2 / envvars:envvars:not found Jan 11 02:30:46 aleksandr-VirtualBox apache2 [8177]:/etc/init.d/apache2:1:/ etc / apache2 / envvars:envvars:not found Jan 11 02:30:46 aleksandr-VirtualBox apache2 [8177]:/etc/init.d/apache2:49:/ etc / apache2 / envvars:envvars:not found Jan 11 02:30:46 aleksandr-VirtualBox apache2 [8177]:* Apache httpd Webサーバーapache2を起動 1月11日02:30:46 aleksandr-VirtualBox apache2 [8177]:* Jan 11 02:30:46 aleksandr-VirtualBox apache2 [8177]:* apache2 configtestが失敗しました。 Jan 11 02:30:46 aleksandr-VirtualBox apache2 [8177]:構成テストの出力は次のとおりでした: Jan 11 02:30:46 aleksandr-VirtualBox apache2 [8177]:/ usr / sbin / apache2ctl:1:/ etc / apache2 / envvars:envvars:not found Jan 11 02:30:46 aleksandr-VirtualBox apache2 [8177]:/ usr / sbin / apache2ctl:49:/ etc / apache2 / envvars:envvars:not found Jan 11 02:30:46 aleksandr-VirtualBox apache2 [8177]:(2)そのようなファイルまたはディレクトリはありません:AH02291:メインエラーログのディレクトリ '/ etc / apache2 / logs /'にアクセスできません Jan 11 02:30:46 aleksandr-VirtualBox apache2 [8177]:AH00014:構成チェックに失敗しました Jan 11 02:30:46 aleksandr-VirtualBox apache2 [8177]:アクション 'configtest'が失敗しました。 Jan 11 02:30:46 aleksandr-VirtualBox apache2 [8177]:Apacheエラーログに詳細が記録されている可能性があります。 Jan 11 02:30:46 aleksandr-VirtualBox systemd [1]:apache2.service:制御プロセスが終了しました、コード=終了ステータス= 1 1月11日02:30:46 aleksandr-VirtualBox sudo [8171]:pam_unix(sudo:session):セッションはユーザーrootに対して閉じられました Jan 11 02:30:46 aleksandr-VirtualBox systemd [1]:LSBの開始に失敗しました:Apache2 Webサーバー。 -件名:ユニットapache2.serviceが失敗しました -定義者:systemd -サポート:http://lists.freedesktop.org/mailman/listinfo/systemd-devel - -ユニットapache2.serviceが失敗しました。 - -結果は失敗します。 Jan 11 02:30:46 aleksandr-VirtualBox systemd [1]:apache2.service:ユニットは障害状態に入りました。 Jan 11 02:30:46 aleksandr-VirtualBox systemd [1]:apache2.service:結果「exit-code」で失敗しました。 Jan 11 02:33:09 aleksandr-VirtualBox dhclient [792]:DHCPREQUEST of 192.168.56.101 on enp0s8 to 192.168.56.100 port 67(xid = 0x204f076f) Jan 11 02:33:09 aleksandr-VirtualBox dhclient [792]:192.168.56.100からの192.168.56.101のDHCPACK Jan 11 02:33:09 aleksandr-VirtualBox NetworkManager [619]:[1484073189.4253]アドレス192.168.56.101 Jan 11 02:33:09 aleksandr-VirtualBox NetworkManager [619]:[1484073189.4260] plen 24(255.255.255.0) Jan 11 02:33:09 aleksandr-VirtualBox NetworkManager [619]:[1484073189.4266]サーバー識別子192.168.56.100 Jan 11 02:33:09 aleksandr-VirtualBox NetworkManager [619]:[1484073189.4273]リース時間1200 Jan 11 02:33:09 aleksandr-VirtualBox NetworkManager [619]:[1484073189.4279] dhcp4(enp0s8):state changed bound-> bound Jan 11 02:33:09 aleksandr-VirtualBox dbus [590]:[system] systemdを介してアクティブ化:service name = 'org.freedesktop.nm_dispatcher' unit = 'dbus-org.freedesktop.nm-dispatcher.service' Jan 11 02:33:09 aleksandr-VirtualBox systemd [1]:Network Manager Script Dispatcher Serviceを開始しています... -件名:ユニットNetworkManager-dispatcher.serviceが起動を開始しました -定義者:systemd - サポート: - -Unit NetworkManager-dispatcher.serviceが起動し始めました。 Jan 11 02:33:09 aleksandr-VirtualBox dhclient [792]:192.168.56.101にバインド-559秒で更新。 Jan 11 02:33:09 aleksandr-VirtualBox dbus [590]:[system]サービス「org.freedesktop.nm_dispatcher」が正常にアクティブ化されました Jan 11 02:33:09 aleksandr-VirtualBox systemd [1]:Network Managerスクリプトディスパッチャーサービスを開始しました。 -件名:ユニットNetworkManager-dispatcher.serviceの起動が完了しました -定義者:systemd - サポート: - -ユニットNetworkManager-dispatcher.serviceの起動が完了しました。 - -起動結果ができました。 Jan 11 02:33:09 aleksandr-VirtualBox nm-dispatcher [8205]:req:1 'dhcp4-change' [enp0s8]:新しいリクエスト(1スクリプト) 1月11日02:33:09 aleksandr-VirtualBox nm-dispatcher [8205]:req:1 'dhcp4-change' [enp0s8]:順序付けされたスクリプトの実行を開始...
そして、それがsystemctl status apache2.service
最高であるとき:
* apache2.service-LSB:Apache2 Webサーバー ロード済み:ロード済み(/etc/init.d/apache2;不良;ベンダープリセット:有効) ドロップイン:/lib/systemd/system/apache2.service.d `-apache2-systemd.conf アクティブ:失敗(結果:終了コード)2017-01-11水02:30:46 +08; 33分前 ドキュメント:man:systemd-sysv-generator(8) プロセス:8023 ExecStop = / etc / init.d / apache2 stop(code = exited、status = 0 / SUCCESS) プロセス:2236 ExecReload = / etc / init.d / apache2 reload(code = exited、status = 0 / SUCCESS) プロセス:8177 ExecStart = / etc / init.d / apache2 start(code = exited、status = 1 / FAILURE) Jan 11 02:30:46 aleksandr-VirtualBox apache2 [8177]:/ usr / sbin / apache2ctl:1:/ etc / apache2 / envvars:envvars:not found Jan 11 02:30:46 aleksandr-VirtualBox apache2 [8177]:/ usr / sbin / apache2ctl:49:/ etc / apache2 / envvars:envvars:not found Jan 11 02:30:46 aleksandr-VirtualBox apache2 [8177]:(2)そのようなファイルまたはディレクトリはありません:AH02291:メインエラーログのディレクトリ '/ etc / apache2 / logs /'にアクセスできません Jan 11 02:30:46 aleksandr-VirtualBox apache2 [8177]:AH00014:構成チェックに失敗しました Jan 11 02:30:46 aleksandr-VirtualBox apache2 [8177]:アクション 'configtest'が失敗しました。 Jan 11 02:30:46 aleksandr-VirtualBox apache2 [8177]:Apacheエラーログに詳細が記録されている可能性があります。 Jan 11 02:30:46 aleksandr-VirtualBox systemd [1]:apache2.service:制御プロセスが終了しました、コード=終了ステータス= 1 Jan 11 02:30:46 aleksandr-VirtualBox systemd [1]:LSBの開始に失敗しました:Apache2 Webサーバー。 Jan 11 02:30:46 aleksandr-VirtualBox systemd [1]:apache2.service:ユニットは障害状態に入りました。 Jan 11 02:30:46 aleksandr-VirtualBox systemd [1]:apache2.service:結果「exit-code」で失敗しました。
なにが問題ですか?割り込みはどこにありますか?助けてください!