0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Webサーバにリアルタイムにアクセスしてる数を調べる

Posted at

調べてみると、以下でやる

watch -n 1 'netstat -an | grep :80 | grep ESTABLISHED | wc -l'

というのを多く見かけたけど、Apacheやnginx以外のWebサーバ以外が80ポート使ってる場合、それまでカウントされちゃう。
例えばApacheだけに絞りたい場合は以下でやる。

watch -n 1 'netstat -anp | grep :80 | grep ESTABLISHED | grep httpd | wc -l'
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?