Outils du site

Quand le sage désigne la lune, l'idiot regarde le doigt. [Proverbe Chinois]

04-linux:85-nginx

Ceci est une ancienne révision du document !


Nginx

Install

sudo apt install nginx

Check

systemctl status nginx

http://localhost

Check Nginx configuration :

sudo nginx -t

Manage

sudo systemctl stop nginx

sudo systemctl start nginx

sudo systemctl restart nginx

sudo systemctl reload nginx

By default, Nginx is configured to start automatically when the server boots. If this is not what you want, you can disable this behavior by typing:

sudo systemctl disable nginx

To re-enable the service to start up at boot, you can type:

sudo systemctl enable nginx

Dernière modification : 2019/02/10 23:44