CentOS配置Tengine
1、安装Nginx所需的pcre-devel库
yum install -y gcc gcc-c++
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.33.tar.gz
tar zxvf pcre-8.33.tar.gz
cd pcre-8.33
./configure --prefix=/usr/local/pcre
make
make install
2、安装Tengine
yum install openssl openssl-devel
wget http://tengine.taobao.org/download/tengine-1.5.1.tar.gz
tar zxvf tengine-1.5.1.tar.gz
cd tengine-1.5.1
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-pcre=/usr/local/pcre-8.33
make
make install
注意:--with-pcre=/usr/local/software/pcre-8.33 指定的是源码包解压的路径
3、启动
1)启动
cd /usr/local/nginx/sbin
./nginx
2)重启
cd /usr/local/nginx/sbin
./nginx -s reload
3)关闭
ps -ef | grep nginx
kill -9 进程号