查看目前Apache 目前在線人數

可以透過httpd 進程數量來推算

ps -ef|grep httpd|wc -l

43

若要查看每一筆進程則輸入

ps -ef|grep httpd


apache    3817  2860  0 03:41 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    3864  2860  0 03:41 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    3924  2860  0 03:41 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    3944  2860  0 03:41 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    3946  2860  0 03:41 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    3949  2860  0 03:41 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    3950  2860  0 03:41 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    4017  2860  0 03:42 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    4025  2860  0 03:42 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    4038  2860  0 03:42 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    4051  2860  0 03:42 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    4199  2860  0 03:43 ?        00:00:03 /usr/sbin/httpd -DFOREGROUND
apache    4214  2860  0 03:44 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    7368  2860  0 04:10 ?        00:00:02 /usr/sbin/httpd -DFOREGROUND
apache    7406  2860  1 04:10 ?        00:00:02 /usr/sbin/httpd -DFOREGROUND
apache    7493  2860  1 04:11 ?        00:00:02 /usr/sbin/httpd -DFOREGROUND
apache    7591  2860  1 04:12 ?        00:00:01 /usr/sbin/httpd -DFOREGROUND
apache    7618  2860  1 04:12 ?        00:00:02 /usr/sbin/httpd -DFOREGROUND
apache    7702  2860  0 04:12 ?        00:00:01 /usr/sbin/httpd -DFOREGROUND
apache    7714  2860  0 04:12 ?        00:00:01 /usr/sbin/httpd -DFOREGROUND
apache    7717  2860  1 04:12 ?        00:00:01 /usr/sbin/httpd -DFOREGROUND
apache    7860  2860  0 04:13 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    7868  2860  1 04:13 ?        00:00:01 /usr/sbin/httpd -DFOREGROUND
apache    7879  2860  1 04:13 ?        00:00:01 /usr/sbin/httpd -DFOREGROUND
apache    7882  2860  0 04:13 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    7925  2860  1 04:13 ?        00:00:01 /usr/sbin/httpd -DFOREGROUND
apache    7930  2860  0 04:13 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    7931  2860  1 04:13 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    7945  2860  1 04:13 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    7976  2860  1 04:14 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    7992  2860  1 04:14 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    7994  2860  1 04:14 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    7995  2860  1 04:14 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    7996  2860  1 04:14 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    8015  2860  2 04:14 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    8021  2860  0 04:14 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    8062  2860  1 04:14 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
apache    8063  2860  3 04:14 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
root      8093  5429  0 04:14 pts/0    00:00:00 grep --color=auto httpd