参考url:
http://linux.fcbu.com/nginx-upgrade-tengine.htm
相关网站:
1、http://pcre.org/
2、http://tengine.taobao.org/
3、http://www.openssl.org/
1、安装pcre-8.31
tar zxvf /tmp/pcre-8.31.tar.gz && cd pcre-8.31
./configure --prefix=/usr/local/pcre
make
make install
2、安装tengine-1.4.1,如果make的时候遇到如下错误:
------------
cd /usr/ \
&& make clean \
&& ./config --prefix=/usr//.openssl no-shared no-threads \
&& make \
&& make install LIBDIR=lib
make[2]: Entering directory `/usr'
make[2]: *** 没有规则可以创建目标“clean”。 停止。
make[2]: Leaving directory `/usr'
make[1]: *** [/usr//.openssl/include/openssl/ssl.h] 错误 2
make[1]: Leaving directory `/usr/local/tengine-1.4.1'
make: *** [build] 错误 2
-----或者-----
cd /usr/ \
&& make clean \
&& ./config --prefix=/usr//.openssl no-shared no-threads \
&& make \
&& make install LIBDIR=lib
make[2]: Entering directory `/usr'
make[2]: *** No rule to make target `clean'. Stop.
make[2]: Leaving directory `/usr'
make[1]: *** [/usr//.openssl/include/openssl/ssl.h] Error 2
make[1]: Leaving directory `/user/local/tengine-1.4.1'
make: *** [build] Error 2
则需下载openssl,并解压缩
3、然后安装tengine-1.4.1
tar zxvf tengine-1.4.1.tar.gz && cd tengine-1.4.1
./configure --prefix=/usr/local/tengine --with-http_stub_status_module --with-openssl=/usr/local/openssl-1.0.1c --with-pcre=/usr/local/pcre-8.31
make
make install
注意,--with-openssl指向的是openssl的源代码目录,--with-pcre也是指向源代码目录
http://linux.fcbu.com/nginx-upgrade-tengine.htm
相关网站:
1、http://pcre.org/
2、http://tengine.taobao.org/
3、http://www.openssl.org/
1、安装pcre-8.31
tar zxvf /tmp/pcre-8.31.tar.gz && cd pcre-8.31
./configure --prefix=/usr/local/pcre
make
make install
2、安装tengine-1.4.1,如果make的时候遇到如下错误:
------------
cd /usr/ \
&& make clean \
&& ./config --prefix=/usr//.openssl no-shared no-threads \
&& make \
&& make install LIBDIR=lib
make[2]: Entering directory `/usr'
make[2]: *** 没有规则可以创建目标“clean”。 停止。
make[2]: Leaving directory `/usr'
make[1]: *** [/usr//.openssl/include/openssl/ssl.h] 错误 2
make[1]: Leaving directory `/usr/local/tengine-1.4.1'
make: *** [build] 错误 2
-----或者-----
cd /usr/ \
&& make clean \
&& ./config --prefix=/usr//.openssl no-shared no-threads \
&& make \
&& make install LIBDIR=lib
make[2]: Entering directory `/usr'
make[2]: *** No rule to make target `clean'. Stop.
make[2]: Leaving directory `/usr'
make[1]: *** [/usr//.openssl/include/openssl/ssl.h] Error 2
make[1]: Leaving directory `/user/local/tengine-1.4.1'
make: *** [build] Error 2
则需下载openssl,并解压缩
3、然后安装tengine-1.4.1
tar zxvf tengine-1.4.1.tar.gz && cd tengine-1.4.1
./configure --prefix=/usr/local/tengine --with-http_stub_status_module --with-openssl=/usr/local/openssl-1.0.1c --with-pcre=/usr/local/pcre-8.31
make
make install
注意,--with-openssl指向的是openssl的源代码目录,--with-pcre也是指向源代码目录