Skip to content

Instantly share code, notes, and snippets.

@kerus1024
Created December 18, 2021 12:50
Show Gist options
  • Save kerus1024/7bdd98099c125ac768571e59dd7bff70 to your computer and use it in GitHub Desktop.
Save kerus1024/7bdd98099c125ac768571e59dd7bff70 to your computer and use it in GitHub Desktop.
debian 11 openresty nginx
#!/bin/bash
set -x
set -e
sudo apt-get -y install --no-install-recommends wget gnupg ca-certificates
wget -O - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
# x86_64, amd64
codename=`grep -Po 'VERSION="[0-9]+ \(\K[^)]+' /etc/os-release`
echo "deb http://openresty.org/package/debian $codename openresty" | sudo tee /etc/apt/sources.list.d/openresty.list
# # arm64/aarch64
# codename=`grep -Po 'VERSION="[0-9]+ \(\K[^)]+' /etc/os-release`
# echo "deb http://openresty.org/package/arm64/debian $codename openresty" | sudo tee /etc/apt/sources.list.d/openresty.list
sudo apt-get -y update
# This package also recommends the openresty-opm and openresty-restydoc packages so the latter two will also automatically get installed by default. If that is not what you want, you can disable the automatic installation of recommended packages like this:
sudo apt-get -y install --no-install-recommends openresty
systemctl start openresty
systemctl enable openresty
# ln -sf /usr/bin/openresty /usr/sbin/nginx
@kerus1024
Copy link
Author

brotil이 없다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment