标签:
1.安装依赖文件
1 yum install pcre pcre-devel openssl openssl-devel -y
2.安装nginx及健康检测模块
1 useradd -s /sbin/nologin -M nginx 2 cd /usr/local/src 3 wget http://nginx.org/download/nginx-1.8.1.tar.gz 4 wget https://codeload.github.com/yaoweibin/nginx_upstream_check_module/zip/master 5 tar -zxvf nginx-1.8.1.tar.gz 6 unzip master 7 cd nginx-1.8.1 8 patch -p1 < ../nginx_upstream_check_module-master/check_1.7.5+.patch 9 ./configure --prefix=/usr/local/nginx-1.8.1 --user=nginx --group=nginx --with-http_ssl_module --with-http_stub_status_module --add-module=../nginx_upstream_check_module-master/ 10 make 11 make install 12 ln -s /usr/local/nginx-1.8.1/ /usr/local/nginx 13 /usr/local/nginx/sbin/nginx
标签:
原文地址:http://www.cnblogs.com/sunmmi/p/5758057.html