Product docs and API reference are now on Akamai TechDocs.
Search product docs.
Search for “” in product docs.
Search API reference.
Search for “” in API reference.
Search Results
 results matching 
 results
No Results
Filters
Add tags
Add authors
Install NGINX on Debian from the NGINX Repository
Published
by
Linode
This guide was written for Debian 9. Other
distributions are available:
Select distribution:
- Ubuntu 20.04
- Ubuntu 18.04
- Debian 10
- CentOS 8
- AlmaLinux 8
- Deprecated guides:
- Ubuntu 12.04
Traducciones al EspañolEstamos traduciendo nuestros guías y tutoriales al Español. Es posible que usted esté viendo una traducción generada automáticamente. Estamos trabajando con traductores profesionales para verificar las traducciones de nuestro sitio web. Este proyecto es un trabajo en curso.
Create a Linode account
to try this guide with a $ credit.
This credit will be applied to any valid services used during your first
days.
These instructions install NGINX Mainline on Debian 9 from NGINX Inc’s official repository. For other distributions, see the NGINX admin guide. For information on configuring NGINX for production environments, see our Getting Started with NGINX series.
Open
/etc/apt/sources.list
in a text editor and add the following line to the bottom:- File: /etc/apt/sources.list
1
deb http://nginx.org/packages/mainline/debian/ stretch nginx
Import the repository’s package signing key and add it to
apt
:sudo wget http://nginx.org/keys/nginx_signing.key sudo apt-key add nginx_signing.key
Install NGINX:
sudo apt update sudo apt install nginx
Ensure NGINX is running and enabled to start automatically on reboots:
sudo systemctl start nginx sudo systemctl enable nginx
This page was originally published on