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

  • NGINX Cookbook
  • Tim Butler
  • 121字
  • 2021-07-03 00:04:18

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.

主站蜘蛛池模板: 万盛区| 大英县| 阆中市| 保康县| 新丰县| 磐安县| 南平市| 襄汾县| 墨江| 安多县| 锦州市| 陆良县| 乌兰浩特市| 翁源县| 宕昌县| 闽侯县| 弥渡县| 库伦旗| 灵山县| 新巴尔虎右旗| 灵台县| 松原市| 武冈市| 夏河县| 巨鹿县| 西城区| 满洲里市| 金门县| 江西省| 贺州市| 万源市| 元阳县| 浪卡子县| 彩票| 博爱县| 巨野县| 修武县| 海林市| 二连浩特市| 丰台区| 东至县|