首页 » 技术点滴 » Linux » 正文

Debian7安装最新稳定版Nginx

wget http://nginx.org/keys/nginx_signing.key
apt-key add nginx_signing.key

vim /etc/apt/sources.list

底部添加

deb http://nginx.org/packages/debian/ wheezy nginx

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

 

问题

如果之前安装过nginx

cd /var/lib/dpkg

mv info info.bak

mkdir info

然后即可安装最新稳定nginx

发表评论