Nginx.org太坏了,竟然给的apt源是有误。
其实应该这样添加才行,网站给的老是报错not found
vim /etc/apt/sources.list 添加如下
deb http://nginx.org/packages/mainline/debian/ jessie nginx
deb-src http://nginx.org/packages/mainline/debian/ jessie nginx
导入key
wget http://nginx.org/packages/keys/nginx_signing.key
apt-key add nginx_signing.key
安装
aptitude update
aptitude install nginx
本文转自 一招拜师 51CTO博客,原文链接:http://blog.51cto.com/sadoc/1895736