Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Optimization of Linux server kernel parameters (suitable for Apache,Nginx,Squid and other web applications)

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Net.ipv4.tcp_fin_timeout=2

Net.ipv4.tcp_tw_reuse=1

Net.ipv4.tcp_tw_recycle=1

Net.ipv4.tcp_syncookies=1

Net.ipv4.tcp_keepalive_time=600

Net.ipv4.ip_local_port_range=4000 65000

Net.ipv4.tcp_max_syn_backlog=16384

Net.ipv4.route.gc_timeout=100

Net.ipv4.tcp_syn_retries=1

Net.ipv4.tcp_synack_retries=1

Net.core.somaxconn=16384

Net.core.netdev_max_backlog=16384

Net.ipv4.tcp_max_orphans=16384

# the following parameters are optimized for iptables firewall. If the firewall does not prompt for meetings, it can be ignored.

Net.nf_conntrack_max=25000000

Net.netfilter.nf_conntrack_max=25000000

Net.netfilter.nf_conntrack_tcp_timeout_established=180

Net.netfilter.nf_conntrack_tcp_timeout_time_wait=120

Net.netfilter.nf_conntrack_tcp_timeout_close_wait=60

Net.netfilter.nf_conntrack_tcp_timeout_fin_wait=120

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report