Nginx: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 7: Zeile 7:
 
=Restart=
 
=Restart=
 
*systemctl restart nginx
 
*systemctl restart nginx
 +
=Reload=
 +
*systemctl reload nginx
 +
 
=Status=
 
=Status=
 
*systemctl status nginx
 
*systemctl status nginx

Version vom 31. März 2017, 09:47 Uhr

Installation

  • sudo apt-get install nginx

Start

  • systemctl start nginx

Stop

  • systemctl stop nginx

Restart

  • systemctl restart nginx

Reload

  • systemctl reload nginx

Status

  • systemctl status nginx

Port check

  • netstat -lntp | grep nginx
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1438/nginx -g daemo
tcp6       0      0 :::80                   :::*                    LISTEN      1438/nginx -g daemo

Configfiles

Konfiguration

Config Datei: root@aaron:~# vi /etc/nginx/nginx.conf