OpenResty Ubuntu 22.04 (amd64) 安装教程

参考文档

  1. 安装依赖包
sudo apt-get -y install --no-install-recommends wget gnupg ca-certificates
  1. 安装 GPG key
wget -O - https://openresty.org/package/pubkey.gpg | sudo gpg --dearmor -o /usr/share/keyrings/openresty.gpg
  1. 安装 apt 仓库
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/openresty.gpg] http://openresty.org/package/ubuntu $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/openresty.list > /dev/null
  1. 安装 Openresty
sudo apt-get update
sudo apt-get -y install openresty

评论栏