How To install Nginx on CentOS 7?

Nginx is a Web server that can be installed on Linux Server. You may have heard about Apache Web Server. Nginx is just like Apache Web server but it can also be used as a reverse proxy and HTTP cache.

Following are the steps to install Nginx on Centos 7.

  1. First of all, Run the below command to install Nginx Repository.

    # sudo yum install epel-release
  2. Second step is to install Nginx.

    # sudo yum install nginx

 

  1. We will enable and start 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 below result.

          

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How do I enable apache file and directory indexing in Linux or UNIX?

There are 2 ways to enable apache file and directory indexing. Using Apache config file : You...

How to Disable SELinux on CentOS?

SELinux called Security-Enhanced Linux is a security module of Linux kernel which provides...

How to Setup NTP Server in CentOS?

NTP enables the automatically sync your system time with a remote server. With the help of NTP...

How you can change the ip address of the domain in Webmin control panel?

Following are the steps to change the IP Address of the domain in Webmin control panel. Login...

How to Install LEMP Stack (Nginx, MariaDB, PHP7.2) on Ubuntu 18.04 LTS?

Nginx, MariaDB and PHP7.2 are called (LEMP). Following are the steps to install LEMP on Ubuntu...