Centos7.2 安装配置 Tengine(nginx)

一、下载tengine

wget http://tengine.taobao.org/download/tengine-2.2.2.tar.gz

二、安装tenginx(nginx)的模块依赖库

yum install gcc-c++  
yum -y install pcre pcre-devel  
yum -y install zlib zlib-devel  
yum -y install openssl openssl-devel

三、解压并指定安装路径

//解压
tar -zxvf tengine-2.2.2.tar.gz

//切换目录                   
cd tengine-2.2.2         

//指定安装到/usr/local/src/tengine目录                             
./configure --prefix=/usr/local/src/tengine 

四、编译安装

make
make install

五、启动(tengine)nginx

//执行命令
/usr/local/src/tengine/sbin/nginx            

六、访问(tengine)nginx

Centos7.2 安装配置 Tengine(nginx)_第1张图片

转载于:https://www.cnblogs.com/yxhblogs/p/8971196.html

你可能感兴趣的:(Centos7.2 安装配置 Tengine(nginx))