luajit-plus

二进制安装包仓库

首先我们需要配置二进制安装包的仓库,按照以下命令进行配置。(命令中的 CLIENT_TOKEN 需要替换成订阅邮件中的有效 Token)

curl -o get-xray-priv-lib-repo.sh https://pkg2.openresty.com.cn/scripts/get-xray-priv-lib-repo.sh

sudo bash get-xray-priv-lib-repo.sh -l luajit-plus -t CLIENT_TOKEN

安装

使用 yum 包管理器的操作系统,执行以下命令进行私有库的安装。

sudo yum install -y openresty-luajit-plus

使用 dnf 包管理器的操作系统,执行以下命令进行私有库的安装。

sudo dnf install -y openresty-luajit-plus

使用 apt 包管理器的操作系统,执行以下命令进行私有库的安装。

sudo apt-get install -y openresty-luajit-plus

重新编译 OpenResty

可参照 installation 进行编译,执行 ./configure 时在 –with-luajit 参数后面加上 luajit-plus 的安装路径。

wget https://openresty.org/download/$pkg.tar.gz
tar -xzvf $pkg.tar.gz
cd $pkg
./configure --prefix=/opt/openresty \
            --with-luajit=/usr/local/openresty/luajit-plus \
            ...

make
make install