版权声明: https://blog.csdn.net/NGU2028070003/article/details/80193074
1、下载tengine
2、解压安装包
tar -zxvf
tengine-2.2.1.tar.gz
3、检测安装平台的目标特征:
命令:./configure
报错:checking for OS + Linux 2.6.32-431.el6.x86_64 x86_64 checking for C compiler ... not found
解决:yum -y install gcc gcc-c++ autoconf automake make
命令:./configure
报错:./configure: error: the HTTP rewrite module requires the PCRE library
解决:yum install pcre-devel
命令:./configure
报错:./configure: error: SSL modules require the OpenSSL library.
解决:yum install openssl-devel
4、编译
命令:make
5、安装
命令:sudo make install
6、启动tengine
tengine默认安装在usr/local/nginx目录下
启动命令:./usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
7、tengine默认监听端口为80端口