CentOS 平台
从包管理安装
# sudo yum-config-manager --add-repo https://openresty.org/yum/cn/centos/OpenResty.repo
# sudo yum check-update
# sudo yum install openresty从源码编译安装
1、源码包准备
# cd /usr/local/src
# wget https://openresty.org/download/ngx_openresty-1.9.7.1.tar.gz2、依赖库安装
3、OpenResty 安装
4、设置环境变量
Last updated