Centos7最大连接数修改 Linux

Cool.Cat 2020-05-06 2148

1、修改后重启

sed -i '1,$c* soft nofile 65535\n* hard nofile 65535\n* soft nproc 65535\n* hard nproc 65535' /etc/security/limits.conf

2、查看是否生效

ulimit -n

3、查看当前已连接数

netstat -n | grep ESTABLISHED | wc -l


最新回复 (0)
返回
发新帖
X