luajit-plus
Configure the binary installer repository
First we need to configure the repository for the binary installer, follow the command below. (The CLIENT_TOKEN
in the command needs to be replaced with a valid Token from the subscription email)
curl -o get-xray-priv-lib-repo.sh https://pkg2.openresty.com/scripts/get-xray-priv-lib-repo.sh
sudo bash get-xray-priv-lib-repo.sh -l luajit-plus -t CLIENT_TOKEN
Installing packages
For operating systems using the yum
package manager, run the following command to install the private library.
sudo yum install -y openresty-luajit-plus
For operating systems using the dnf
package manager, execute the following command to install the private libraries.
sudo dnf install -y openresty-luajit-plus
For operating systems using the apt
package manager, execute the following command to install the private libraries.
sudo apt-get install -y openresty-luajit-plus
Recompile OpenResty
You can compile OpenResty by referring to installation. Note that when executing ./configure
with the installation path of luajit-plus after the -with-luajit
parameter.
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