用来查看apache 进程下最大文件打开数
#!/bin/bash for pid in `ps aux |grep httpd |grep -v grep |awk ‘{ print $2 }‘` do cat /proc/$(pid)/limits |grep ‘Max Openfiles‘ done
本文出自 “Smurf Linux运维” 博客,请务必保留此出处http://jin771998569.blog.51cto.com/2147853/1636022
原文:http://jin771998569.blog.51cto.com/2147853/1636022