Nginx Installation in CentOS 7

Nginx Installation in CentOS 7

Step 1: Add Nginx repository .


Command : 

# yum install epel-release




Step 2:  Install Nginx using following command .


Command:

# yum install nginx




Step 3: Start the service of Nginx .


Command : 

# systemctl start nginx




Step 4: Check status of Ngnix .


Command: 

# systemctl status nginx






Step 5 : If you are running a firewall, run the following commands to allow HTTP and HTTPS traffic:


Command :


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

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

# sudo firewall-cmd --reload



Step 6 : Now check the webserver while accessing the server IP address in the browser. 


URL: - http://server_domain_name_or_IP/



THANK YOU !



    • Related Articles

    • NGINX: Installation and Basic Setup

      Before You Begin You need root access of the server or a sudo  privileged user account. Set the hostname of your cloud server. Update your server. Install NGINX Stable Versus Mainline The first decision on your installation is whether you want NGINX ...
    • How to Configure NGINX

      NGINX is a web server designed for high-traffic cases that is lightweight and highly efficient. The ability to easily support static content such as HTML and media files is one of the most significant features of NGINX. NGINX uses a predictable ...
    • Use NGINX as a Reverse Proxy

      What is a Reverse Proxy? A reverse proxy is a server between internal and external clients which transmits clients requests to a different server. Although other standard applications, such as Node.js, can support themselves, NGINX has a range of ...
    • NGINX : Enable TLS or HTTPS Connections

      The Secure Socket Layer (SSL) is the successor to Transportation Layer Security (TLS). It provides stronger and more powerful HTPS and includes non-SSL improvements such as Forward Confidentiality, modern OpenSSL cipher suites, and ...
    • How to Connect Node.js Application with MongoDB on CentOS

      This article will help you to connect Node.js application with MongoDB. Also, configure MongoDB drive for nodejs using Mongoose node application on CentOS and Redhat systems. Prerequsities We assume that Node.js and MongoDB are already installed on ...