TECHIES WORLD

For Techs.... Techniques.... Technologies....

Linux

How to install nginx in Centos7

NGINX is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. NGINX is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption.

This tutorial explains the steps to install Nginx in Centos7 server.

Step1: Add repository

#yum install epel-release

Step2: Install nginx

#yum install nginx

Step3: Start nginx

#systemctl start nginx

Step4: Allow nginx connections in firewall

#firewall-cmd --permanent --zone=public --add-service=http

#firewall-cmd --permanent --zone=public --add-service=https

#firewall-cmd --reload

Step5: Set nginx to run in the startup

#systemctl enable nginx

 

That's all......

Leave a Reply