Nginx web server<\/a> first.<\/p>\n\n\n\nsudo apt-get install nginx -y<\/pre>\n\n\n\nAfter installation, start and enable the service:<\/p>\n\n\n\n
sudo systemctl start nginx && sudo systemctl enable nginx<\/pre>\n\n\n\nTo check the status of the Nginx service, execute the following command:<\/p>\n\n\n\n
sudo systemctl status nginx<\/pre>\n\n\n\nYou should get the following output:<\/p>\n\n\n\n
\u25cf nginx.service - A high performance web server and a reverse proxy server\n Loaded: loaded (\/lib\/systemd\/system\/nginx.service; enabled; vendor preset: enabled)\n Active: active (running) since Tue 2023-04-18 12:13:57 CDT; 44s ago\n Docs: man:nginx(8)\n Process: 9753 ExecStartPre=\/usr\/sbin\/nginx -t -q -g daemon on; master_process on; (code=exited, status=0\/SUCCESS)\n Process: 9754 ExecStart=\/usr\/sbin\/nginx -g daemon on; master_process on; (code=exited, status=0\/SUCCESS)\n Main PID: 9755 (nginx)\n Tasks: 4 (limit: 4675)\n Memory: 4.3M\n CPU: 71ms\n CGroup: \/system.slice\/nginx.service\n \u251c\u25009755 nginx: master process \/usr\/sbin\/nginx -g daemon on; master_process on;\n<\/pre>\n\n\n\n