Atlantic.Net Blog

How to Install Nginx in Debian 7

Verified and Tested 02/26/15

Introduction

This how-to will help you with your Debian 7 installation to successfully run an outstanding performance-based web server while easing the load of your system resources.

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 get the job done efficiently.

What Do You Need?

You need a Debian 7 server that is configured with a static IP address. If you do not have a server already, you can visit our VPS Hosting page and spin a new server up in under 30 seconds.

Server Preparation

To get started, log in to your Debian 7 via SSH or the VNC Console in cloud.atlantic.net. Atlantic.Net Cloud servers are set up as minimal installations 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 apt-get update

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

Install Nginx

To install Nginx, we will need to use the apt-get  command so we can install the software:

sudo apt-get install nginx

You will now have NGINX installed on your server and can be verified by typing in the following with your IP ADDRESS on your browser.

Your IP could be retrieved from the server with the following command:

ifconfig eth0 | grep inet | awk '{ print $2 }'

This is the default webpage when installing Nignx on Debian 7

This is the default webpage when installing Nginx on Debian 7

 

What Next?

You now have your Debian 7  server with Nginx installed, and you may begin building high-performance websites using your newly installed web server.

Thank you for following along in this How-To, and feel free to check back with us for any new updates soon!

Check out our VPS hosting price.

Get a $250 Credit and Access to Our Free Tier!

Free Tier includes:
G3.2GB Cloud VPS a Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year