文章目录1.下载nginx2.配置负载均衡3.配置双主热备 1.下载nginx 准备环境 yum install gcc-c++ yum install -y pcre pcre-devel yum install -y openssl openssl-devel 准备nginx: 下载:# wget http://nginx.org/download/nginx-1.8.1.tar.gz 解压:# tar -zxvf nginx-1.8.1.tar.gz 进入目录:# cd nginx-1.8.1 配置nginx:# ./configure --prefix=/usr/src/nginx