nginx for windows
nginx.conf
worker_processes 8;
error_log logs/ info;
events {
worker_connections 2048;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
keepalive_timeout 120;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 64k;
fastcgi_buffers 4 64k;
fastcgi_busy_buffers_size 128k;
fastcgi_temp_file_write_size 128k;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_types text/plain application/x-javascript text/css application/xml;
gzip_vary on;
include vhosts/*.conf;
}
stream {
include vstream/*.conf;
}
stream.conf
server {
listen 33220;
proxy_pass 127.0.0.1:33210;
proxy_connect_timeout 1h;
proxy_timeout 1h;
}
server {
listen 33221;
proxy_pass 127.0.0.1:33211;
proxy_connect_timeout 1h;
proxy_timeout 1h;
}
start nginx
tasklist /fi "imagename eq nginx.exe"
nginx -s stop
telnet 10.168.1.239 33220
telnet 10.168.1.239 33221
export https_proxy=http://10.168.1.239:33220 http_proxy=http://10.168.1.239:33220 all_proxy=socks5://10.168.1.239:33211
本文来自博客园,作者:GreeneGe,转载请注明原文链接:https://www.cnblogs.com/greene/p/17044819.html