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.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

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:nginx

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:ubuntu

apt-get update
apt-get install nginx

4, OK, Check the version

nginx -v

nginx version: nginx/1.8.1bash

技術博客:點我點我app

相關文章
相關標籤/搜索