如何为已安装的 OpenResty 添加 "secure_link" 的支持?
How to add support of "secure_link" to already installed OpenResty?
我在 OpenResty 的日志中有一个错误:
unknown directive secure_link
我在 Arch Linux 并且我以标准方式安装了 OpenResty
yay -S openresty
如何添加对secure_link的支持?
你不知道。向 nginx 添加新模块的唯一方法是重新编译它。
这是 bash script 我几乎在任何地方都使用来安装 openresty 的片段:
latest='openresty-1.13.6.2'
apt-get -y install libpcre3-dev libssl-dev perl make build-essential curl libzip-dev
wget 'https://openresty.org/download/'$latest'.tar.gz'
tar -xzf $latest'.tar.gz'
cd $latest
./configure \
--with-http_v2_module \
--with-http_ssl_module \
&& make -j $(nproc) && make install || exit
cd ..
find -maxdepth 1 -name "$latest*" | xargs rm -rf
从那里你应该能够复制并粘贴你的方式到一个工作的 openresty 安装。
我在 OpenResty 的日志中有一个错误:
unknown directive secure_link
我在 Arch Linux 并且我以标准方式安装了 OpenResty
yay -S openresty
如何添加对secure_link的支持?
你不知道。向 nginx 添加新模块的唯一方法是重新编译它。
这是 bash script 我几乎在任何地方都使用来安装 openresty 的片段:
latest='openresty-1.13.6.2'
apt-get -y install libpcre3-dev libssl-dev perl make build-essential curl libzip-dev
wget 'https://openresty.org/download/'$latest'.tar.gz'
tar -xzf $latest'.tar.gz'
cd $latest
./configure \
--with-http_v2_module \
--with-http_ssl_module \
&& make -j $(nproc) && make install || exit
cd ..
find -maxdepth 1 -name "$latest*" | xargs rm -rf
从那里你应该能够复制并粘贴你的方式到一个工作的 openresty 安装。