nginx调优之内核配置
来源:互联网 发布:php 前台框架 编辑:程序博客网 时间:2024/06/18 11:59
在文件/etc/sysctl.conf中添加一下内容:
net.ipv4.tcp_max_tw_bucket = 6000
net.ipv4.ip_local_port_range = 1024 65000
sysctl -a|grep net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_syncookies = 1
net.core.somaxconn = 262144
net.core.netdev_max_backlog = 262144
net.ipv4.tcp_max_orphans = 262144
net.ipv4.tcp_max_syn_backlog = 262144
net.ipv4.tcp_synack_retries = 1
net.ipv4.tcp_syn_retries = 1
net.ipv4.tcp_fin_timeout = 1
net.ipv4.tcp_keepalive_time = 30
使sysctl.conf文件中新添加的内容生效:
sysctl -p
net.ipv4.tcp_max_tw_bucket = 6000
net.ipv4.ip_local_port_range = 1024 65000
sysctl -a|grep net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_syncookies = 1
net.core.somaxconn = 262144
net.core.netdev_max_backlog = 262144
net.ipv4.tcp_max_orphans = 262144
net.ipv4.tcp_max_syn_backlog = 262144
net.ipv4.tcp_synack_retries = 1
net.ipv4.tcp_syn_retries = 1
net.ipv4.tcp_fin_timeout = 1
net.ipv4.tcp_keepalive_time = 30
使sysctl.conf文件中新添加的内容生效:
sysctl -p
阅读全文
0 0
- nginx调优之内核配置
- Nginx配置调优
- nginx之nginx.conf配置
- nginx之 nginx虚拟机配置
- nginx 配置之 虚拟目录
- nginx之location配置
- nginx配置之location
- nginx之location配置
- Nginx之Https配置
- nginx之https配置
- nginx之location配置
- Nginx之Https配置
- nginx之https配置
- nginx之location配置
- Nginx之http配置
- Nginx之location配置
- Nginx之rewrite配置
- Nginx配置优化与系统内核优化
- 51nod 1099 任务执行顺序 贪心
- 心理学与人工智能
- uboot1.3.4中可以删除的文件
- 关联规则挖掘
- Javaweb过滤器的实际应用
- nginx调优之内核配置
- CCPC-final 2016 B
- 解決所有软件Ctrl+Z快捷键失效的问题
- [C++] 通用算法、函数对象、lambda表达式、bind
- nginx php安装
- 有些MP4文件在浏览器无法正常显示
- 教训:某款嵌入式Linux [[不支持=~正则表达式
- Java加密解密之非对称加密
- 10.7 test solution.