linux内核参数
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;
}
}
}