freeCodeCamp/guide/english/nginx/index.md

1.2 KiB

title
Installation of Nginx in Ubuntu

Introduction

  • Nginx is a web server which can also be used as a reverse proxy, load balancer and HTTP cache.
  • It is one of the most popular web servers in use and is responsible for hosting some of the largest and highest-traffic sites on the internet.
  • It is proven to be lighter on resources than httpd/Apache.
  • Nginx is free and open-source software, first released in 2004.

Installation of Nginx on Ubuntu

Update the local package index and install Nginx from default repositories:

$ sudo apt update 
$ sudo apt install nginx
$ sudo systemctl status nginx # will check if the server is running as the installation should have started it already

Installation of Nginx on CentOS 7

Add Nginx repository and install:

$ sudo yum install epel-release
$ sudo yum install nginx
$ sudo systemctl start nginx # will start the server

More Information

An Introduction to NGINX for Developers
Nginx tutorial
Links to top tutorials