Linux 普通用户安装openresty

Linux 普通用户安装openresty,第1张

Linux 普通用户安装openresty

penResty® 是一个基于 Nginx 与 Lua 的高性能 Web 平台,其内部集成了大量精良的 Lua 库、第三方模块以及大多数的依赖项。用于方便地搭建能够处理超高并发、扩展性极高的动态 Web 应用、Web 服务和动态网关。

1.用root用户安装依赖包
yum install perl
yum install gcc
yum install gcc-c++
yum install zlib
yum install zlib-devel;

2.下载openresty
​
wget https://openresty.org/download/openresty-1.11.2.5.tar.gz

tar -zxvf openresty-1.11.2.5.tar.gz 

​

 3.下载prce 安装包
wget   https://netix.dl.sourceforge.net/project/pcre/pcre/8.40/pcre-8.40.tar.gz
tar -xvf pcre-8.40.tar.gz
4.下载openssl 
wget https://www.openssl.org/source/openssl-1.0.2k.tar.gz
tar -zvxf openssl-1.0.2k.tar.gz
cd openssl-1.0.2k/
patch -p1 < /home/appuser/soft/openresty/patches/openssl-1.0.2h-sess_set_get_cb_yield.patch
红色标注的是openresty下载包解压之后的路径

5. assuming your have 4 spare logical CPU cores
cd openresty
./configure --prefix=/home/appuser/soft/openresty   --with-openssl=/home/appuser/soft/openssl --with-pcre=/home/appuser/soft/pcre -j4

gmake

gmake PREFIX=/home/appuser/soft/openresty install 

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/4966111.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-13
下一篇 2022-11-13

发表评论

登录后才能评论

评论列表(0条)

保存