Table of Contents
Verified and Tested 08/27/15
Introduction
This how-to will walk you through installing Nginx on CentOS 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 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 virtual private server in under 30 seconds
Server Preparation
To get started, login to your CentOS 7 via SSH or the VNC Console in cloud.atlantic.net. 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 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 systemctl start nginx
To make sure that Nginx starts when rebooted, insert the following:
sudo systemctl enable nginx
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 )
What Next?
You now have your CentOS 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 VPS hosting solutions.