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
技术博客:点我点我
相关推荐
HanksWang 2020-11-10
nginxs 2020-11-14
Guanjs0 2020-11-13
小木兮子 2020-11-11
yserver 2020-11-11
ssihc0 2020-11-11
windle 2020-11-10
liuchen0 2020-11-10
Freshairx 2020-11-10
ccschan 2020-11-10
liwf 2020-11-10
Guanjs0 2020-11-09
AderStep 2020-11-09
zrtlin 2020-11-09
mqfcu 2020-11-10
windle 2020-10-29