nginx 在ubuntu14.04(trusty)上的安装

前端之家收集整理的这篇文章主要介绍了nginx 在ubuntu14.04(trusty)上的安装前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

deb仓库 添加/etc/apt/sources.list加上如下两条
deb http://Nginx.org/packages/ubuntu/ trusty Nginx
deb-src http://Nginx.org/packages/ubuntu/ trusty Nginx

然后有可能出线pgp钥匙不匹配的问题
W: GPG error: http://Nginx.org trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY xxxxxx
把这个xxxx传下下面的命令中去
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys xxxxxx

之后
sudo apt-get update
sudo apt-get install Nginx
安装稳定版

Nginx.com/resources/wiki/start/topics/tutorials/install/">https://www.Nginx.com/resourc...

猜你在找的程序笔记相关文章