源码下载

image.png

  • 安装命令
    1. tar -xzvf openresty-VERSION.tar.gz
    2. cd openresty-VERSION/
    3. ./configure
    4. make
    5. sudo make install

    配置configure

执行命令:./configure

如果有缺失模块的问题,可执行以下命令安装:

  • yum -y install pcre-devel
  • yum -y install openssl openssl-devel

配置完成截图
image.png

编译make

执行命令: make
image.png

安装make install

执行命令: make install

image.png

安装完成

  • 安装目录 /usr/local/openresty

image.png

  • 启动: /usr/local/openresty/bin/openresty
  • 大功告成

image.png