粗略记录下安装过程,以防下次安装有个记录
yum install pcre-devel openssl-devel gcc curl wget unzip -y
wget https://openresty.org/download/openresty-1.15.8.3.tar.gz
tar xvf openresty-1.15.8.3.tar.gz
cd openresty-1.15.8.3
./configure --user=www --group=www --with-http_v2_module --with-http_ssl_module && make && make install
useradd -s /sbin/nologin www
export PATH=/usr/local/openresty/bin:$PATH
ln -s /usr/local/openresty/nginx/sbin/nginx /bin/nginx
##启动nginx
nginx
如无特殊说明,文章均为本站原创,转载请注明出处
- 转载请注明来源:简记快速启动Openresty服务
- 本文永久链接地址:https://www.xionghaier.cn/archives/1238.html