socket:too many open files


ab测试web性能时报错

解决办法:


# ulimit -n 200000  (200000是随意写的,尽量大一些)

再执行ab就可以了

设置后可用命令ulimit -a查看