centos - ps -C nginx --no-header | wc -l,这个命令不太懂
PHPz
PHPz 2017-04-26 09:01:26
0
2
1041

ps 后面除了 nginx ,其他的参数不太理解呀

PHPz
PHPz

学习是最好的投资!

reply all(2)
某草草

| The pipe character passes the results from the previous PS to the later processing in strips
wc -l to check how many strips there are

给我你的怀抱

I feel like I wrote it wrong:
-c simple name of the executable
-C complete command line
--no-headers does not print the beginning (or header file)

wc -l counts the number of lines

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!