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

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.

主站蜘蛛池模板: 凤翔县| 留坝县| 兴隆县| 莎车县| 贵州省| 常州市| 闽清县| 昌吉市| 开平市| 潞西市| 博爱县| 海安县| 保康县| 锦州市| 梁河县| 富蕴县| 双城市| 吉安市| 金堂县| 庆安县| 申扎县| 镇平县| 洞头县| 兴安县| 郸城县| 新干县| 沽源县| 府谷县| 中江县| 永兴县| 邵阳县| 阜阳市| 临泽县| 松桃| 宁晋县| 芜湖市| 扶沟县| 和田县| 高青县| 小金县| 仪征市|