Ubuntu14.04(从Nginx官方源)安装Nginx稳定版预编译包

1, Download Key and add it

For Debian/Ubuntu, in order to authenticate the nginx repository signature and to eliminate warnings about missing PGP key during installation of the nginx package, it is necessary to add the key used to sign the nginx packages and repository to the apt program keyring.

Please download Key, and add it to the apt program keyring with the following command:

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

2, Edit /etc/apt/sources.list

For Ubuntu replace codename with Ubuntu distribution codename, and append the following to the end of the /etc/apt/sources.list file:

deb http://nginx.org/packages/ubuntu/ trusty nginx
deb-src http://nginx.org/packages/ubuntu/ trusty nginx

3, Install it

For Debian/Ubuntu then run the following commands:

apt-get update
apt-get install nginx

4, OK, Check the version

nginx -v

nginx version: nginx/1.8.1

技术博客:点我点我

    原文作者:zzir
    原文地址: https://segmentfault.com/a/1190000004597056
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞