Ubuntu 安装最新版本nginx
本人测试环境为Ubuntu13.04
1.添加key
wget http://nginx.org/keys/nginx_signing.key apt-key add nginx_signing.key
2.创建/etc/apt/sources.list.d/nginx.list文件,内容如下:
deb http://nginx.org/packages/mainline/ubuntu/ raring nginx deb-src http://nginx.org/packages/mainline/ubuntu/ raring nginx
3.更新及安装:
apt-get update apt-get install nginx
4.检查版本
nginx -v
5.在浏览器中输入127.0.0.1显示页面为 Welcome to nginx! 即安装成功。