1.安装依赖
yum -y install readline-devel pcre-devel openssl-devel gcc perl curl
2.下载源码压缩包
下载网站:https://openresty.org/en/download.html

tar -zxvf openresty-1.15.8.2.tar.gz
cd openresty-1.15.8.2
./configure
或者
./configure --prefix=/usr/local/ --with-luajit --without-http_redis2_module --with-http_iconv_module
然后编译安装
make
make install
完成后在usr/local/下出现openresty文件
启动nginx
cd /usr/local/openresty/nginx/sbin/
./nginx
打开浏览器http://ip:80
出现welcome to openresty
本文详细介绍如何在Linux环境下安装OpenResty,并提供具体步骤,包括依赖安装、源码下载、配置编译及最终的启动过程。
460

被折叠的 条评论
为什么被折叠?



