Ad Widget

Collapse

How to count the process number of nginx?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • insanelee
    Junior Member
    • Sep 2010
    • 18

    #1

    How to count the process number of nginx?

    When I use the key such as, proc.num[,nginx] ,proc.num[www-data,nginx], the result is zero.
    I enter the command on the linux machine, "ps aux | grep nginx|grep -V grep", the output is shown as followed:
    root 24347 0.0 0.0 28372 1520 ? Ss May20 0:00 nginx: master process /usr/sbin/nginx
    www-data 26633 0.0 0.0 30096 3852 ? S Aug11 78:21 nginx: worker process
    www-data 26634 0.0 0.0 30036 3816 ? S Aug11 88:54 nginx: worker process

    How to display the process number of nginx with the key, proc.num[] ?
Working...