nginx에서 Lua 쓸 일이 생겨서 OpenResty를 그냥 사용하기로 했다.

CentOS7

yum install -y yum-utils
yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo
yum install -y openresty
systemctl enable openresty
systemctl start openresty

Ubuntu

wget -qO - https://openresty.org/package/pubkey.gpg | apt-key add - ( ubuntu)
apt install -y software-properties-common
add-apt-repository -y "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main" (ubuntu)
apt update

+ Recent posts