Linux 普通用户安装openresty

您所在的位置:网站首页 openresty配置php Linux 普通用户安装openresty

Linux 普通用户安装openresty

2023-09-26 15:54| 来源: 网络整理| 查看: 265

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



【本文地址】


今日新闻


推荐新闻


    CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3