linux内核参数
2012-11-12 22:26
204 查看
linux内核参数
net.ipv4.tcp_max_tw_buckets=6000
net.ipv4.ip_local_port_range=1024 65000
net.ipv4.tcp_tw_recycle=1
net.ipv4.tcp_tw_reuse=1
net.ipv4.tcp_syncookies=1
net.ipv4.somaxconn=262144
net.ipv4.netdev_max_backlog=262144
net.ipv4.tcp_max_orphans=262144
net.ipv4.tcp_max_syn_backlog=262144
net.ipv4.tcp_timestamps=0
net.ipv4.tcp_synack_retries=1
net.ipv4.tcp_syn_retries=1
net.ipv4.tcp_fin_timeout=1
net.ipv4.tcp_keepalive_time=30
wget http://python.ca/scgi/releases/scgi-1.14.tar.gz
-- SCGI(Simple Gateway Interface)
python setup.py install
---------------
server模块:
location /download {
root /sdc/download;
index index.html index.htm;
}
将提供的.ipa或.apk文件位置放置在/sdc/download目录中就可以了。
----------------
SCGI-0.6.tar.gz
Plack-0.9982.tar.gz
Plack-Handler-SCGI-0.02.tar.gz
命令:plackup
http{
include mime.types;
default_type application/octet-stream;
sendfileon;
keepalive_timeout 65;
scgi_cache_path /tmp/scgi_cache levels=1:2
keys_zone=NAME:100m
inactive=5m;
server{
listen 80;
server_name localhost;
location /{
include scgi_params;
scgi_pass 192.168.3.193:2222;
scgi_cache NAME;
scgi_cache_valid 200 302 1h;
scgi_cahe_valid 301 1d;
scgi_cache_valid any 1m;
scgi_cache_min_uses 1;
scgi_cache_use_stale error timeout invalid_header http_500;
}
}
}
net.ipv4.tcp_max_tw_buckets=6000
net.ipv4.ip_local_port_range=1024 65000
net.ipv4.tcp_tw_recycle=1
net.ipv4.tcp_tw_reuse=1
net.ipv4.tcp_syncookies=1
net.ipv4.somaxconn=262144
net.ipv4.netdev_max_backlog=262144
net.ipv4.tcp_max_orphans=262144
net.ipv4.tcp_max_syn_backlog=262144
net.ipv4.tcp_timestamps=0
net.ipv4.tcp_synack_retries=1
net.ipv4.tcp_syn_retries=1
net.ipv4.tcp_fin_timeout=1
net.ipv4.tcp_keepalive_time=30
wget http://python.ca/scgi/releases/scgi-1.14.tar.gz
-- SCGI(Simple Gateway Interface)
python setup.py install
---------------
server模块:
location /download {
root /sdc/download;
index index.html index.htm;
}
将提供的.ipa或.apk文件位置放置在/sdc/download目录中就可以了。
----------------
SCGI-0.6.tar.gz
Plack-0.9982.tar.gz
Plack-Handler-SCGI-0.02.tar.gz
命令:plackup
http{
include mime.types;
default_type application/octet-stream;
sendfileon;
keepalive_timeout 65;
scgi_cache_path /tmp/scgi_cache levels=1:2
keys_zone=NAME:100m
inactive=5m;
server{
listen 80;
server_name localhost;
location /{
include scgi_params;
scgi_pass 192.168.3.193:2222;
scgi_cache NAME;
scgi_cache_valid 200 302 1h;
scgi_cahe_valid 301 1d;
scgi_cache_valid any 1m;
scgi_cache_min_uses 1;
scgi_cache_use_stale error timeout invalid_header http_500;
}
}
}
相关文章推荐
- nginx优化篇之Linux 内核参数的优化
- Linux操作系统内核启动参数详细解析 [转]
- linux 内核参数调整说明
- linux 内存管理——内核的shmall 和shmmax 参数
- Linux 内核参数 和 Oracle相关参数调整
- SYN Flood攻击、SYN Cookie防御和Linux/FreeBSD的内核参数修改
- 关于linux系统内核参数
- linux 系统内核参数优化
- 优化Linux的内核参数来提高服务器并发处理能力
- 优化Linux下的内核TCP参数
- linux下TCP/IP及内核参数优化调优(TIME_WAIT)
- 优化Linux下的内核TCP参数来提高服务器负载能力
- Linux内核参数的优化
- 优化Linux的内核参数来提高服务器并发处理能力
- 安装ORACLE时在Linux上设置内核参数的含义
- Linux服务器内核参数优化(适合Apache,Nginx,Squid等多种web应用)
- linux下修改内核参数进行Tcp性能调优 -- 高并发
- Linux 内核网络参数
- Linux 下 Oracle 内核参数优化
- 在linux下查看内核版本、gcc版本、操作系统多少位等参数