Outils du site

Et je vous dis que la vie est en effet obscure sauf là où il y a élan, Et tout élan est aveugle sauf là où il y a la connaissance. Et toute connaissance est vaine sauf là ou il y a le travail, Et tout travail est futile sauf là où il y a l'amour. [Khalil GIBRAN]

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