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