how to check nginx status in ubuntu code example
Example 1: how to start nginx in linux
sudo systemctl restart nginx
Example 2: ubuntn nginx restart
sudo service nginx restart
Example 3: nginx syntax check
$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful