Skip to content

Instantly share code, notes, and snippets.

@danbao
Last active April 27, 2016 08:56
Show Gist options
  • Save danbao/93459ecba06915ccb3fe to your computer and use it in GitHub Desktop.
Save danbao/93459ecba06915ccb3fe to your computer and use it in GitHub Desktop.
add replace-filter-nginx-module into tengine and create deb package
#!/usr/bin/env bash
# Copyright @ LinZhen@Net
# install git
apt-get install git -y
# install sregex
apt-get install bison -y
cd /tmp
git clone https://github.com/openresty/sregex.git
cd ./sregex
make
make install
#git tengine & replace-filter-nginx-module source code
cd /tmp
git clone https://github.com/openresty/replace-filter-nginx-module.git
git clone https://github.com/alibaba/tengine.git
cd ./tengine
#git tengine debian make source code
git clone https://github.com/danbao/make-tengine-deb.git debian
apt-get install build-essential debhelper make autoconf automake patch dpkg-dev fakeroot pbuilder gnupg dh-make libssl-dev libpcre3-dev -y
export DEB_BUILD_OPTIONS=nocheck; dpkg-buildpackage -rfakeroot -uc -b
cd /tmp
#install package
dpkg -i ./tengine_10.0.0_amd64.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment