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 进程号
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 进程号
相关文章推荐
- Linux 系统应用编程——标准I/O
- Linux 系统应用编程——标准I/O
- Linux 系统应用编程——标准I/O
- linux 内核内存分配
- CentOS7安装MYSQL5.7.12
- linux jps: command not found
- Linux常用命令-35条
- Linux计划任务,自动删除n天前的旧文件
- Linux 下根据进程名kill进程
- 遇见的一些linux命令
- Linux中的15个‘echo’ 命令实例
- ubuntu如何在多个工作区之间自由切换以及添加返回桌面图标
- Linux 安装Mysql
- linux shell 脚本基础编写
- 使用Python获取Linux系统的各种信息
- Linux redhat 部署项目
- linux sqlite 安装编译问题
- centos安装后iptables基本设置
- Linux命令详解1--文件和目录管理之文件查找和比较
- 编译linux内核问题