标签:efi gen -- cli config end keepalive ESS char
安装参照:http://www.runoob.com/linux/nginx-install-setup.html
配置参照:https://www.cnblogs.com/Miss-mickey/p/6734831.html
个人总结:
安装:
1. nginx 前置安装 prce
wget http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz
[root@bogon src]# tar zxvf pcre-8.35.tar.gz
[root@bogon src]# cd pcre-8.35
[root@bogon pcre-8.35]# ./configure [root@bogon pcre-8.35]# make && make install
[root@bogon pcre-8.35]# pcre-config --version
2. nginx 安装:
[root@bogon src]# wget http://nginx.org/download/nginx-1.6.2.tar.gz
[root@bogon src]# cd nginx-1.6.2
[root@bogon nginx-1.6.2]# ./configure --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/usr/local/src/pcre-8.35
[root@bogon nginx-1.6.2]# make
[root@bogon nginx-1.6.2]# make install
[root@bogon nginx-1.6.2]# /usr/local/webserver/nginx/sbin/nginx -v
nginx 常用命令:
配置:
http { include mime.types; default_type application/octet-stream; #log_format main ‘$remote_addr - $remote_user [$time_local] "$request" ‘ # ‘$status $body_bytes_sent "$http_referer" ‘ # ‘"$http_user_agent" "$http_x_forwarded_for"‘; #access_log logs/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #设定负载均衡的服务器列表 upstream mysvr { #weigth参数表示权值,权值越高被分配到的几率越大 #本机上的Squid开启3128端口 server 127.0.0.1:8888 weight=5; #server 192.168.8.2:80 weight=1; #server 192.168.8.3:80 weight=6; } #gzip on; server { listen 9980; server_name localhost; client_max_body_size 6m; #charset koi8-r; #access_log logs/host.access.log main; location / { root html; index index.html index.htm; } location ~* /test { proxy_pass http://mysvr; }
标签:efi gen -- cli config end keepalive ESS char
原文地址:https://www.cnblogs.com/z-test/p/9409259.html