Atlantic.Net Blog

How to Install Nginx on CentOS 6.7

Jose Velazquez
by Atlantic.Net (71posts) under Cloud Hosting
Verified and Tested 08/27/15


This how-to will walk you through installing Nginx on CentOS 6.7.  Nginx is a powerful web server software that can be used on your server. It is also known for its high performance and low memory usage which will allow fewer resources to be used but getting the job done efficiently.

What Do You Need?

You need a CentOS 6.7 server that is configured with a static IP address. If you do not have a server already, you can visit Atlantic.Net Cloud Hosting page and spin up a reliable cloud server in under 30 seconds

Server Preparation

To get started, login to your CentOS 6.7 via SSH or the VNC Console in Atlantic.Net Cloud servers are set up as minimal installations in order to avoid having unnecessary packages from being installed and never used. Because of this, let’s make sure that your server is fully up-to-date.

sudo yum update

With the server up-to-date, we can continue the installation process of your server.

Install EPEL and Nginx on CentOS 6.7

In order to install Nginx, we will need to use the apt-get command so we can install the software. Also, we will need to install EPEL in order for the Nginx installation installs correctly.

Run the command to install the EPEL:

sudo yum install epel-release

Run the command to install Nginx:

sudo yum install nginx

Run the command to start the service:

sudo /etc/init.d/nginx start

To make sure that Nginx starts when rebooted, insert the following:

chkconfig nginx on

You will now have NGINX installed on your server. This can be verified by typing in the following with your IP ADDRESS on your browser (http://YOUR.IP.ADD.RESS )

This is the default webpage when installing Nginx on CentOS 6.7

This is the default webpage when installing Nginx on CentOS 6.7

What Next?

You now have your CentOS 6.7 server with Nginx installed. You can now begin building high performance websites using your newly installed web server.

Thank you for following along in this How-To! Check back with us for any new updates and try any of our industry-leading cloud hosting solutions.

Get started with 12 months of free cloud services

Free Tier includes:
G2.1GB Cloud Server Free to Use for One Year
50 GB of Block Storage Free to Use for One Year

New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Dallas, TX

2323 Bryan Street,

Dallas, Texas 75201

United States

Ashburn, VA

1807 Michael Faraday Ct,

Reston, VA 20190

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4


London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom


We use cookies for advertising, social media and analytics purposes. Read about how we use cookies in our updated Privacy Policy. If you continue to use this site, you consent to our use of cookies and our Privacy Policy.