ps -A -o pid,lstart,cmd |grep nginx
输出:
56487 Mon Sep 3 15:23:30 2018 nginx: master process nginx
70813 Wed Nov 28 10:30:27 2018 nginx: worker process
70815 Wed Nov 28 10:30:27 2018 nginx: worker process
70817 Wed Nov 28 10:30:27 2018 nginx: worker process
70818 Wed Nov 28 10:30:27 2018 nginx: worker process
70819 Wed Nov 28 10:30:27 2018 nginx: worker process
70820 Wed Nov 28 10:30:27 2018 nginx: worker process
70821 Wed Nov 28 10:30:27 2018 nginx: worker process
70823 Wed Nov 28 10:30:27 2018 nginx: worker process
105652 Wed Nov 28 11:48:29 2018 grep nginx