huzilinitachi 2019-06-20
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
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
For Debian/Ubuntu then run the following commands:
apt-get update apt-get install nginx
nginx -v
nginx version: nginx/1.8.1
技术博客:点我点我