Created
December 18, 2021 12:50
-
-
Save kerus1024/7bdd98099c125ac768571e59dd7bff70 to your computer and use it in GitHub Desktop.
debian 11 openresty nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
brotil이 없다