Nginx is the most Important, open-source, and a high-performance Web server. It can work as a reverse proxy server also, nowadays, is used by most of the most significant websites on the internet.
People pronounced “engine x” for Nginx; it is the hot choice for every website owner to power their site with Nginx.
In comparison to the Apache web server, Nginx is capable of handling more connections with a few amount of memory footprint in each connection.
Make sure your Linux box does not have an Apache HTTP server or any application service running on port 80 and 443. You should have sudo privileges to execute commands on your Linux machine.
Nowadays, Nginx software packages built-in Ubuntu default software repository, so the installation is effortless, You just run the following commands in terminal:
# sudo apt update # sudo apt install nginx
After installation of Nginx, you can check the status of the Nginx service by using the following command:
# sudo systemctl status nginx
The output of the above command should show that the Nginx service is running:
nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2020-22-06 15:44:04 UTC; 1min 59s ago Main PID: 1461 (nginx) CGroup: /system.slice/nginx.service ├─1461 nginx: master process /usr/sbin/nginx -g daemon on; master_process on └─1463 nginx: worker process