How to check the status of ngnix service on Ubuntu

Run the following command to check the status the nginx service on Ubuntu:

systemctl status nginx

The above command will give you a detailed status like this:

 nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor prese>
     Active: active (running) since Sat 2022-12-11 19:25:12 UTC; 5min 11s ago
       Docs: man:nginx(8)