- #!/bin/bash
- # used for install nginx pcre
- #yum install -y zlib-devel zlib gcc gcc-c++ automake make libstdc++
- wget http://www.openssl.org/source/openssl-0.9.8l.tar.gz
- tar zxf ./openssl-0.9.8l.tar.gz
- cd ./openssl-0.9.8l
- ./config enable-tl***t
- make && make install
- cd ..
- #install pcre
- tar -xzf pcre-8.12.tar.gz
- cd pcre-8.12
- ./configure && make && make install
- cd ..
- #mod nginx_upstream_jvm for java application
- unzip nginx_upstream_jvm_route.zip
- #nginx 1.0.12
- tar -xzf nginx-1.0.12.tar.gz
- cd nginx-1.0.12
- mv ../nginx-upstream-jvm-route/nginx_upstream_jvm_route/ .
- patch -p0 < ./nginx_upstream_jvm_route/jvm_route.patch
- ./configure --user=nobody --group=nobody --prefix=/usr/local/nginx \
- --with-http_stub_status_module --with-http_gzip_static_module \
- --with-http_realip_module --with-http_sub_module --add-module=./nginx_upstream_jvm_route/ \
- --with-pcre=../pcre-8.12 --with-http_ssl_module --with-openssl=../openssl-0.9.8l/
- make && make install
- cd ..
转载于:https://blog.51cto.com/myhat/973137