linux 下 给nginx 添加jvm_route 模块

来源:互联网 发布:怎么卸载java jdk 编辑:程序博客网 时间:2024/06/05 06:40
cd /opt
wget http://nginx.org/download/nginx-1.2.8.tar.gz
tar zxvf /opt/nginx-1.2.8.tar.gz
wget https://nginx-upstream-jvm-route.googlecode.com/files/nginx-upstream-jvm-route-0.1.tar.gz
tar zxvf /opt/nginx_upstream_jvm_route
cd /opt/nginx-1.2.8
patch -p0 < /opt/nginx_upstream_jvm_route/jvm_route.patch
./configure --with-http_stub_status_module --prefix=/usr/webserver/nginx --with-pcre=/opt/pcre-8.32 --add-module=/opt/nginx_upstream_jvm_route
make
make install
原创粉丝点击