源码下载
- 安装命令
tar -xzvf openresty-VERSION.tar.gz
cd openresty-VERSION/
./configure
make
sudo make install
配置configure
执行命令:./configure
如果有缺失模块的问题,可执行以下命令安装:
yum -y install pcre-devel
yum -y install openssl openssl-devel
配置完成截图
编译make
执行命令: make
安装make install
执行命令: make install
安装完成
- 安装目录
/usr/local/openresty
- 启动:
/usr/local/openresty/bin/openresty
- 大功告成