centos下nginx安装 下载nginx 1wget http://nginx.org/download/nginx-1.16.0.tar.gz 解压并安装: 1234tar -zxvf nginx-1.16.0cd nginx-1.16.0./configure --prefix=/usr/local/nginxmake -j4 & make install 负载均衡配置123456http{ upstream aaa.com{ server xxx.xxx.xxx.xxx; least_conn; }} 反向代理12345678910http{ server { listen 80; location /{ proxy_pass http://splash; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }}