1,vi /etc/security/limits.conf
* soft nproc 65536
* hard nproc 65536
* soft nofile 65536
* hard nofile 65536
* soft memlock unlimited
* hard memlock unlimited
2,vim /etc/systemd/system.conf
DefaultLimitNOFILE=100000
DefaultLimitNPROC=65535
3,echo "fs.file-max = 6553560" >> /etc/sysctl.conf
4,vi /etc/profile
ulimit -SHn 40960
5,echo 3 > /proc/sys/vm/drop_caches