栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

Linux 普通用户安装openresty

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/389043.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号