zeqk
9/8/2017 - 6:59 PM

My Nginx Cheatsheet

Debian/Ubuntu commands

My Nginx Cheatsheet

Administrar

Detener

sudo service nginx stop

Iniciar

sudo service nginx start

Ver estado

sudo service nginx status
systemctl status nginx

Recargar configuración

sudo systemctl reload nginx

Editar configuracion

sudo nano /etc/nginx/nginx.conf

Hello World

server {
    listen 80;
    location / {
        default_type text/plain;
        return 200 'Hello World'
    }
}