Q&A
前提・実現したいこと
Webサーバーとしてapache2.4.6を利用しているのですが、突然再起動を繰り返すようになってしまいました
OSはCentOS7.5です。
起動してから30秒ほどでサービスが停止し、さらに30秒ほど立つと自動で起動されます。
特に設定を変更した記憶はないです。
どうすれば安定して起動するようになるでしょうか
発生している問題・エラーメッセージ
起動→停止→起動までのログです。
####/var/log/httpd/error_log
[Sat Dec 01 19:13:32.511620 2018] [suexec:notice] [pid 27330] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Sat Dec 01 19:13:32.519855 2018] [ssl:warn] [pid 27330] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366) [Sat Dec 01 19:13:32.542225 2018] [auth_digest:notice] [pid 27330] AH01757: generating secret for digest authentication ... [Sat Dec 01 19:13:32.542729 2018] [lbmethod_heartbeat:notice] [pid 27330] AH02282: No slotmem from mod_heartmonitor [Sat Dec 01 19:13:32.550719 2018] [ssl:warn] [pid 27330] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366) [Sat Dec 01 19:13:32.570050 2018] [mpm_prefork:notice] [pid 27330] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.1.23 configured -- resuming normal operations [Sat Dec 01 19:13:32.570073 2018] [core:notice] [pid 27330] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Sat Dec 01 19:14:01.094184 2018] [mpm_prefork:notice] [pid 27330] AH00170: caught SIGWINCH, shutting down gracefully [Sat Dec 01 19:15:31.549818 2018] [ssl:warn] [pid 28125] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366) [Sat Dec 01 19:15:31.572793 2018] [auth_digest:notice] [pid 28125] AH01757: generating secret for digest authentication ... [Sat Dec 01 19:15:31.573225 2018] [lbmethod_heartbeat:notice] [pid 28125] AH02282: No slotmem from mod_heartmonitor [Sat Dec 01 19:15:31.580491 2018] [ssl:warn] [pid 28125] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366) [Sat Dec 01 19:15:31.599194 2018] [mpm_prefork:notice] [pid 28125] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.1.23 configured -- resuming normal operations [Sat Dec 01 19:15:31.599234 2018] [core:notice] [pid 28125] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
journalctl -fu httpd
12月 01 19:21:32 hoge.com systemd[1]: Starting The Apache HTTP Server... 12月 01 19:21:32 hoge.com systemd[1]: Started The Apache HTTP Server. 12月 01 19:22:01 hoge.com systemd[1]: Stopping The Apache HTTP Server... 12月 01 19:23:31 hoge.com systemd[1]: httpd.service stop-sigterm timed out. Killing. 12月 01 19:23:31 hoge.com systemd[1]: httpd.service: main process exited, code=killed, status=9/KILL 12月 01 19:23:31 hoge.com systemd[1]: Stopped The Apache HTTP Server. 12月 01 19:23:31 hoge.com systemd[1]: Unit httpd.service entered failed state. 12月 01 19:23:31 hoge.com systemd[1]: httpd.service failed. 12月 01 19:23:31 hoge.com systemd[1]: Starting The Apache HTTP Server... 12月 01 19:23:31 hoge.com systemd[1]: Started The Apache HTTP Server.
試したこと
・killall -9 httpd などのコマンドでapacheのプロセスを全て落としてからapacheを起動
・lsof -i:443 や lsof -i:80 などのコマンドで他プロセスが同じポートを使用していないかどうかなどの確認
・コチラを参考にセマフォ数の確認や限界値の変更
・エラーログが肥大化していないか、その他理由でディスクを圧迫してないかどうかなどの確認
回答1件
あなたの回答
tips
プレビュー
下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。