您的位置:首页 > 运维架构 > Linux

CentOS配置Tengine

2016-04-25 18:43 726 查看
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 进程号
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: