- 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.
推薦閱讀
- Machine Learning with R Cookbook(Second Edition)
- 小程序,巧運營:微信小程序運營招式大全
- Scala謎題
- FFmpeg入門詳解:音視頻原理及應用
- PostgreSQL Replication(Second Edition)
- Oracle從入門到精通(第5版)
- 基于Struts、Hibernate、Spring架構的Web應用開發
- Python深度學習原理、算法與案例
- Babylon.js Essentials
- CoffeeScript Application Development Cookbook
- PHP+MySQL動態網站開發從入門到精通(視頻教學版)
- Python預測分析與機器學習
- Get Your Hands Dirty on Clean Architecture
- React and React Native
- 創新工場講AI課:從知識到實踐