Nginx is a web server that can be installed on Linux Server.
You may have heard about the Apache web server, and Nginx is just like an Apache web server, but it can also be used as a reverse proxy and HTTP cache.
To install Nginx on Centos 7, you can follow these steps –
1. First, run the command given below to install Nginx Repository –
# sudo yum install epel-release
2. Then install Nginx –
# sudo yum install nginx
3. We will enable and start the Nginx service using the below command.
# sudo systemctl enable nginx
# sudo systemctl start nginx
Now, you can access your server IP Address in the local browser, and it will give the result as shown below –