Ubuntu 12.04 安装最新版本的Nginx


1.add key

wget http://nginx.org/keys/nginx_signing.key  
apt-key add nginx_signing.key
2.touch /etc/apt/sources.list.d/nginx.list file,add this contents

deb http://nginx.org/packages/mainline/ubuntu/ raring nginx
deb-src http://nginx.org/packages/mainline/ubuntu/ raring nginx
3.update and install

apt-get update  
apt-get install nginx
4.check version

nginx -v  
nginx version: nginx/1.5.6


你可能感兴趣的:(nginx,ubuntu,升级Nginx版本)