Install needed prerequisites:
apt-get install build-essential checkinstall
apt-get build-dep nginx
apt-get source nginx
Check out TCP sockets patch for nginx from git repository:
git clone https://github.com/yaoweibin/nginx_tcp_proxy_module.git
Patch your nginx source code:
cd nginx-1.1.19/
patch -p1 < ../nginx_tcp_proxy_module/tcp.patch
Now configure and build a new package:
./configure \
--add-module=../nginx_tcp_proxy_module/ \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--http-log-path=/var/log/nginx/access.log \
--with-http_dav_module \
--http-client-body-temp-path=/var/lib/nginx/body \
--with-http_ssl_module \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--with-http_stub_status_module \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--with-debug \
--with-http_flv_module \
--prefix=/usr \
--sbin-path=/usr/sbin/nginx
make
you will end with a package for your CPU architecture similar to:
/root/nginx-1.1.19/nginx_1.1.19-1_amd64.deb
Force install it:
dpkg -i --force-all /root/nginx-1.1.19/nginx_1.1.19-1_amd64.deb
Provided by: Forthscale, Cloud experts
No comments:
Post a Comment