WEIC`S BLOG

Debian从源安装最新版本Nginx

使用经验

通过添加Nginx的源来下载最新稳定版的Nginx;

添加源

Debian7
deb http://nginx.org/packages/debian/ wheezy nginx
deb-src http://nginx.org/packages/debian/ wheezy nginx
Debian8
deb http://nginx.org/packages/debian/ jessie nginx
deb-src http://nginx.org/packages/debian/ jessie nginx

步入正轨

下载key
wget http://nginx.org/keys/nginx_signing.key
导入key
apt-key add nginx_signing.key
更新源
apt-get update
安装nginx
apt-get install nginx

收工!

加载评论
打赏本文
二维码