OpenRest官方网站
http://openresty.org/cn/
源码安装方式
安装前的准备
Linux运行命令:yum install pcre-devel openssl-devel gcc curl
下载openresty-1.15.8.1
wget https://openresty.org/download/openresty-1.15.8.1.tar.gz
解压
tar -zxvf openresty-1.15.8.1.tar.gz
进入目录-执行configure-make && make install 编译
cd openresty-1.15.8.1
##选择需要的插件启用, --with-Components 激活组件,--without 则是禁止组件
./configure
make && make install
添加环境变量
vi /etc/profile ##加入 path 路径
export PATH=$PATH:/usr/local/openresty/nginx/sbin/
source /etc/profile ##生效配置
安装检测
nginx -V ##如下显示,则表示安装成功