Steps to install Nginx on CentOS 7

kumkumsharma

Administrator
Staff member
Nginx is a web server which is used for various different works but mostly used for reverse proxy or HTTP cache. But it can be also used for web server, load balancing, media streaming, etc.

You can follow below steps to install Nginx:
  • First you have to run below command to install Nginx Repository.
Code:
# sudo yum install epel-release
  • Now install Nginx with another command:
Code:
# sudo yum install nginx
  • Now its time to start and enable Nginx service with command:
Code:
# sudo systemctl enable nginx
# sudo systemctl start nginx
 
Top