tengine 安装,tengine


1.download http://tengine.taobao.org/download/tengine-1.4.6.tar.gz
2.修改 /tengine-1.4.6/src/core/nginx.h
将 #define TENGINE_VER "TENGINE/" TENGINE_VERSION
改为 #define TENGINE_VER "YWS" 这里改成你想要在HTTP 头部 显示的Server名称

3.安装
./configure --prefix=/usr/local/nginx
安装Nginx时报错

./configure: error: the HTTP rewrite module requires the PCRE library.
安装pcre-devel解决问题
yum -y install pcre-devel

错误提示:./configure: error: the HTTP cache module requires md5 functions
from OpenSSL library. You can either disable the module by using
--without-http-cache option, or install the OpenSSL library into the system,
or build the OpenSSL library statically from the source with nginx by using
--with-http_ssl_module --with-openssl=<path> options.
解决办法:
yum -y install openssl openssl-devel
总结:
yum -y install pcre-devel openssl openssl-devel

./configure --prefix=/usr/local/nginx --with-http_sysguard_module --with-syslog
make
make install

相关内容

    暂无相关文章