官术网_书友最值得收藏!

Packages – Debian/Ubuntu

First, download the NGINX signing key for the packages and install it:

wget http://nginx.org/keys/nginx_signing.key
apt-key add nginx_signing.key

Then, using your preferred Linux editor, we can add the sources to /etc/apt/sources.list.d/nginx.list:

deb http://nginx.org/packages/mainline/debian/ codename nginx
deb-src http://nginx.org/packages/mainline/debian/ codename nginx

Replace codename with the release name; for example, if you're using Debian 8, this will be set to jessie.

For Ubuntu-based systems, you'll need to use the following:

deb http://nginx.org/packages/mainline/ubuntu/ codename nginx
deb-src http://nginx.org/packages/mainline/ubuntu/ codename nginx

Replace codename with the release name; for example, if you're using Ubuntu 14.04, this will be set to trusty.

After adding the new source, we can then update the apt database and install NGINX:

apt-get update
apt-get install nginx

Installation should now be complete.

主站蜘蛛池模板: 勃利县| 张家口市| 宝山区| 镇宁| 历史| 达尔| 淮滨县| 苍溪县| 金川县| 兴安县| 安西县| 资源县| 盱眙县| 浑源县| 岐山县| 高青县| 西城区| 岳池县| 七台河市| 涿鹿县| 湖南省| 台湾省| 沙洋县| 娄烦县| 绥宁县| 叙永县| 宁安市| 寻乌县| 景洪市| 安新县| 长沙市| 汤阴县| 淮阳县| 东阿县| 临桂县| 英山县| 遂川县| 永丰县| 夏邑县| 黄梅县| 南康市|