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.html
Please download Key, and add it to the apt program keyring with the following command:linux
wget http://nginx.org/keys/nginx_signing.key sudo apt-key add nginx_signing.key
For Ubuntu replace codename with Ubuntu distribution codename, and append the following to the end of the /etc/apt/sources.list file:nginx
deb http://nginx.org/packages/ubuntu/ trusty nginx deb-src http://nginx.org/packages/ubuntu/ trusty nginx
For Debian/Ubuntu then run the following commands:ubuntu
apt-get update apt-get install nginx
nginx -v
nginx version: nginx/1.8.1bash
技術博客:點我點我app