CentOS 安装 OpenResty

登录 OpenResty官网

  • http://openresty.org/cn/installation.html
  • http://openresty.org/cn/download.html (下载页面)

下载OpenResty

  • wget https://openresty.org/download/openresty-1.19.9.1.tar.gz

安装步骤

- 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

你可能感兴趣的:(CentOS 安装 OpenResty)