# Check version
$ nginx -v
# Check configuration syntax
$ sudo nginx -t
# Test run
$ sudo nginx -T
# Start nginx
$ sudo systemctl start nginx
# Stop nginx
$ sudo systemctl stop nginx
# Restart nginx
$ sudo systemctl restart nginx
# Reload configuration
$ sudo systemctl reload nginx
# View status
$ sudo systemctl status nginxMozilla has kindly provided us with a configuration generator here.