#nginx
ps aux | grep -v root | grep nginx | cut -d\ -f1 | sort | uniq
#php-fpm
ps aux | grep -v root | grep php-fpm | cut -d\ -f1 | sort | uniq
查看php-fpm 或者nginx运行的用户
最新推荐文章于 2022-12-20 10:53:59 发布
#nginx
ps aux | grep -v root | grep nginx | cut -d\ -f1 | sort | uniq
#php-fpm
ps aux | grep -v root | grep php-fpm | cut -d\ -f1 | sort | uniq