登录 OpenResty官网
下载OpenResty
安装步骤
- tar -xvf openresty-1.19.9.1.tar.gz
- cd openresty-1.19.9.1
- ./configure 默认安装到/usr/local/openresty
- gmake
- gmake install
错误
./configure: error: the HTTP rewrite module requires the PCRE library.错误
./configure: error: SSL modules require the OpenSSL library.
如出现时上述等问题,执行:
yum install pcre-devel openssl-devel gcc curl