Linux服务器系统和网络设置
Opened this issue · 0 comments
clia commented
vim /etc/security/limits.conf
* soft nofile 1000001
* hard nofile 1000002
root soft nofile 1000001
root hard nofile 1000002
* soft nofile 1000001
* hard nofile 1000002
root soft nofile 1000001
root hard nofile 1000002
* soft memlock unlimited
* hard memlock unlimited
vim /etc/systemd/system.conf
DefaultLimitNOFILE=1000001
vim /etc/systemd/user.conf
DefaultLimitNOFILE=1000001
vim /etc/ssh/sshd_config
ClientAliveInterval 60
ClientAliveCountMax 1
cat /proc/sys/net/ipv4/ip_local_port_range
echo "1024 65535" > /proc/sys/net/ipv4/ip_local_port_range