20171201/5a203bff0ad74.jpg

The best life is use of willing attitude, a happy-go-lucky life.

— Mr.Wang

头像

Linux Centos openresty 编译安装

发布时间:2017-12-01 01:12:31

发布作者:admin

4285

一、准备

1.更新系统

yum makecache && yum -y update
2.安装常用基础软件

yum -y install bash-completion vim net-tools bind-utils wget screen
3.需要下载的源码

openresty https://openresty.org/download/openresty-1.13.6.1.tar.gz

php5.4   http://museum.php.net/php5/php-5.4.7.tar.gz

mysql   http://mirrors.sohu.com/mysql/MySQL-5.7/mysql-boost-5.7.17.tar.gz


二、安装openresty

1.依赖关系

openresty依赖于perl 5.6.1+, libreadline, libpcre, libssl,首先安装依赖关系。

yum install readline-devel pcre-devel openssl-devel gcc
2.下载源码
wget https://openresty.org/download/openresty-1.13.6.1.tar.gz
解压进入目录
tar -xzf openresty-1.13.6.1.tar.gz
cd openresty-1.13.6.1
3../configure生成地图
./configure --prefix=/usr/local/openresty
4.编译安装
make && make install



相关文章:
  1. 申请免费通配符证书(Let's Encrypt)并绑定IIS
  2. Sublime Text3 必备插件
  3. ThinkPHP3.2.3 RCE漏洞
  4. node.js 进程守护forever