- 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.
推薦閱讀
- Java EE 6 企業(yè)級(jí)應(yīng)用開(kāi)發(fā)教程
- 劍指Offer(專(zhuān)項(xiàng)突破版):數(shù)據(jù)結(jié)構(gòu)與算法名企面試題精講
- 老“碼”識(shí)途
- Building Cross-Platform Desktop Applications with Electron
- JavaScript by Example
- 深度學(xué)習(xí):算法入門(mén)與Keras編程實(shí)踐
- TypeScript實(shí)戰(zhàn)指南
- GameMaker Programming By Example
- Mastering Android Development with Kotlin
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)教程(Windows 7+Office 2010)
- 動(dòng)手打造深度學(xué)習(xí)框架
- C語(yǔ)言程序設(shè)計(jì)
- Mastering JavaScript
- Spring Data JPA從入門(mén)到精通
- Android熱門(mén)應(yīng)用開(kāi)發(fā)詳解