Debian从源安装最新版本Nginx

Debian
/ Nginx
Apr 1, 2017 ~

通过添加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

收工!

Tags

Weic Ma

没有什么事是一个脑瓜子解决不了的,要是不行就Remove掉你的脑瓜子吧!

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.