LoginSignup
8
8

More than 5 years have passed since last update.

訪問者の有無を確認してからApacheを再起動させる方法

Last updated at Posted at 2015-01-15

再起動する前に訪問者がいないかどうか確認する。

tail -f access_log

tailにオプション-fを付けることでログが常に表示される。

訪問者がいなくなった瞬間にApacheを再起動させてくれる httpd gracefulを使用します。

/etc/init.d/httpd graceful

ちなみに再起動前にエラーチェックはしましょう。

/etc/init.d/nginx configtest

8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8