fix bug
This commit is contained in:
3
lemp.sh
3
lemp.sh
@@ -51,7 +51,7 @@ ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||
# /etc/sysctl.conf
|
||||
sed -i 's/net.ipv4.tcp_syncookies.*$/net.ipv4.tcp_syncookies = 1/g' /etc/sysctl.conf
|
||||
[ -z "`grep 'fs.file-max' /etc/sysctl.conf`" ] && cat >> /etc/sysctl.conf << EOF
|
||||
fs.file-max=65535
|
||||
fs.file-max = 65535
|
||||
net.ipv4.tcp_fin_timeout = 30
|
||||
net.ipv4.tcp_tw_reuse = 1
|
||||
net.ipv4.tcp_tw_recycle = 0
|
||||
@@ -61,6 +61,7 @@ net.ipv4.tcp_max_tw_buckets = 20000
|
||||
net.ipv4.route.gc_timeout = 100
|
||||
net.ipv4.tcp_syn_retries = 1
|
||||
net.ipv4.tcp_synack_retries = 1
|
||||
net.ipv4.tcp_syncookies = 1
|
||||
net.core.somaxconn = 65535
|
||||
net.core.netdev_max_backlog = 262144
|
||||
net.ipv4.tcp_timestamps = 0
|
||||
|
||||
Reference in New Issue
Block a user