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

posted @ 2018-04-29 16:06  Yxh_blogs  阅读(297)  评论(0编辑  收藏  举报