#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运行的用户
最新推荐文章于 2023-03-14 13:36:25 发布
#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