The Be Sure Blog

Code Snippets | Problem Solving | Tips & Tricks

The Be Sure Blog banner

Useful Nginx commands for Linux

posted on 15.1.2023 by Below Surface in "Nginx"

Nginx is an easy to use server, load balancer and reverse proxy. Here i collect useful commands to keep it running:

$ apt-get install nginx // install Nginx
$ nginx -t         // do a configuration test
$ systemctl start nginx      // start Nginx
$ systemctl stop nginx      // stop Nginx
$ systemctl restart nginx      // restart Nginx
$ systemctl status nginx      // check the Nginx status
$ systemctl -v nginx      // check the Nginx version
$ sudo apt purge nginx nginx-common nginx-core // remove nginx completely

Tags:

nginx
linux
useful commands

More posts of this category

Add a subdomain to Nginx and Linode

Add a new subdomain to Linode, Nginx and extend a SSL certificate

Nginx