Ubuntu 14.04.1 Nginx 역방향 에이전트
server 1.cn.pool.ntp.org
server 1.asia.pool.ntp.org
server 0.asia.pool.ntp.org
groupadd nginx
useradd -M -s /sbin/nologin nginx -g nginx
sudo apt-get install gcc g++ make automake
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.36.tar.gz
wget http://zlib.net/zlib-1.2.8.tar.gz
./configure \
--prefix=/usr/local/nginx \
--with-http_stub_status_module #NGINX 상태 조회 지원
--with-http_spdy_module #GOOGLE 의 SPDY 를 지지 합 니 다.
--with-http_ssl_module #HTTPS 지원
--with-http_gzip_static_module ##사전 압축 파일 전송 전 검사, 파일 중복 압축 방지
--with-pcre #rewrite 재 작성 기능 지원
--user=nginx \
--group=nginx \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log \
make && make install
server{
listen 80;
server_name ~^(.+)?\.supuy\.com$;
access_log /var/log/nginx/xxx.xxx.xxx_access.log combined;
location / {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://xxx.xxx.xxx.xxx;
}
location ~* \.(tgz|rar|bz2|zip|7z|tar|gz|bz|Z|)$
{
root html;
return 404;
}
}
nginx.conf
worker_rlimit_nofile 65535;
/etc/security/limits.conf
* soft nofile 655360
* hard nofile 655360
fs.file-max=65535
net.ipv4.tcp_syncookies = 1
#
net.ipv4.tcp_fin_timeout = 30
#
net.ipv4.tcp_tw_reuse = 1
#
net.ipv4.tcp_tw_recycle = 1
#
net.ipv4.ip_local_port_range = 1024 65000
#
net.ipv4.tcp_max_syn_backlog = 65536
#
net.ipv4.tcp_max_tw_buckets = 6000
#
net.ipv4.route.gc_timeout = 100
net.ipv4.tcp_syn_retries = 1
#
net.ipv4.tcp_synack_retries = 1
net.core.somaxconn = 65535
#
net.core.netdev_max_backlog = 262144
#
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_max_orphans = 262144
#
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Java 에이전트(jdk 정적 에이전트, 동적 에이전트와 cglib 동적 에이전트)2. jdk 정적 에이전트 에이전트 클래스 System.out.println ("사무가 끝났습니다."); 3. jdk 동적 에이전트 에이전트 클래스 4. 에이전트 클래스 3. jdk 동적 에이전트는 인터페이스 에이전...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.