openresty-1.17.8.1:在CentOS7安装。

第1步

wget https://openresty.org/download/openresty-1.17.8.1.tar.gz

第2步

tar -xzvf openresty-1.17.8.1.tar.gz

第3步

yum -y install pcre-devel

第4步

yum -y install openssl openssl-devel

第5步

yum -y install lua*

第6步

cd bundle/LuaJIT-2.1-20200102/ 

第7步

make clean && make && make install  

第8步

ln -sf luajit-2.1.0-beta3 /usr/local/bin/luajit  

第9步

cd bundle

第10步

下载ngx_cache_purge模块,该模块用于清理nginx缓存

wget https://github.com/FRiCKLE/ngx_cache_purge/archive/2.3.tar.gz 

第11步

tar -xvf 2.3.tar.gz 

第12步

下载nginx_upstream_check_module模块,该模块用于ustream健康检查

wget https://github.com/yaoweibin/nginx_upstream_check_module/archive/v0.3.0.tar.gz 

第13步

tar -xvf v0.3.0.tar.gz   

第14步

 cd ..

第15步

./configure --prefix=/usr/test/openresty --with-http_realip_module  --with-pcre  --with-luajit --add-module=./bundle/ngx_cache_purge-2.3/ --add-module=./bundle/nginx_upstream_check_module-0.3.0/ -j2  
  • --with***                              安装一些内置/集成的模块
  • --with-http_realip_module  取用户真实ip模块
  • -with-pcre                           Perl兼容的达式模块
  • --with-luajit                         集成luajit模块
  • --add-module                     添加自定义的第三方模块,如此次的ngx_che_purge

第16步

make && make install  

第17步,启动

/usr/test/openresty/nginx/sbin/nginx

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

软件求生

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值