Debian Linux通过源安装最新版Nginx
1、添加源:(bullseye为debian 11的发行版本代号,根据实际情况修改)
echo deb http://nginx.org/packages/debian/ bullseye nginx | tee /etc/apt/sources.list.d/nginx.list apt install gnupg2 -y cd /home wget http://nginx.org/keys/nginx_signing.key apt-key add nginx_signing.key
2、安装:
apt update apt install nginx -y
3、检验安装结果
service nginx start nginx -v
相关文章
标签:linux