ubuntu 环境安装Nginx
添加秘钥
sudo apt-key add Nginx_signing.key
进入目录
/etc/apt/sources.list
deb http://Nginx.org/packages/mainline/ubuntu/ codename Nginx deb-src http://Nginx.org/packages/mainline/ubuntu/ codename Nginx
codename如果你不知道请执行
lsb_release -c
Ok 最后执行
apt-get update apt-get install Nginx
完成
原文链接:https://www.f2er.com/ubuntu/355428.html