0
点赞
收藏
分享

微信扫一扫

java进阶—重要概念反射

悬灸人雪洋 2023-06-30 阅读 88

https://github.com/openresty/openresty/tags里边有openresty各个版本的源码。
在这里插入图片描述

https://openresty.org/en/是官网。

wget https://github.com/openresty/openresty/archive/refs/tags/v1.15.8.1.tar.gz(github网址)或者wget https://openresty.org/download/openresty-1.15.8.1.tar.gz(官网)下载源码包。
在这里插入图片描述
tar zxf openresty-1.15.8.1.tar.gz && cd openresty-1.15.8.1解压文件。
在这里插入图片描述

./configure --prefix=/usr/local/openresty,源码里边已经有环境配置了,但是需要使用此步骤进行匹配,比如内核版本、gcc安装目录和版本,同时也说明将会安装到/usr/local/openresty目录里边。

在这里插入图片描述
发现报错如下:

./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.

ERROR: failed to run command: sh ./configure --prefix=/usr/local/openresty/nginx \...

在这里插入图片描述

yum install -y pcre-devel安装pcre-devel
在这里插入图片描述

再次执行./configure --prefix=/usr/local/openresty
在这里插入图片描述

发现报错如下:

./configure: error: SSL modules require the OpenSSL library.
You can either do not enable the modules, or install the OpenSSL library
into the system, or build the OpenSSL library statically from the source
with nginx by using --with-openssl=<path> option.

ERROR: failed to run command: sh ./configure --prefix=/usr/local/openresty/nginx \...

在这里插入图片描述

yum install -y openssl安装openssl
在这里插入图片描述

再次执行./configure --prefix=/usr/local/openresty
在这里插入图片描述

发现还是报错如下:

./configure: error: SSL modules require the OpenSSL library.
You can either do not enable the modules, or install the OpenSSL library
into the system, or build the OpenSSL library statically from the source
with nginx by using --with-openssl=<path> option.

ERROR: failed to run command: sh ./configure --prefix=/usr/local/openresty/nginx \...

在这里插入图片描述

yum install -y openssl-devel安装openssl-devel
在这里插入图片描述
再次执行./configure --prefix=/usr/local/openresty
在这里插入图片描述

完成之后,如下图所示:

在这里插入图片描述

gmake进行编译。
在这里插入图片描述

完成如下:
在这里插入图片描述

gmake install进行安装。
在这里插入图片描述

完成之后如下:
在这里插入图片描述

​此文章为6月Day 24学习笔记,内容来源于极客时间《Linux 实战技能 100 讲》。

举报

相关推荐

0 条评论