- 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.
推薦閱讀
- PHP 從入門到項目實踐(超值版)
- Reactive Programming with Swift
- Windows Presentation Foundation Development Cookbook
- Mastering macOS Programming
- HTML5入門經典
- C語言程序設計同步訓練與上機指導(第三版)
- Python算法指南:程序員經典算法分析與實現
- Android Wear Projects
- Learning Concurrency in Kotlin
- 案例式C語言程序設計實驗指導
- Apache Camel Developer's Cookbook
- 石墨烯改性塑料
- Arduino Electronics Blueprints
- Offer來了:Java面試核心知識點精講(框架篇)
- Python數據可視化之matplotlib實踐