Home » Categories » Multiple Categories |
How To Install nginx on Ubuntu 12.04 LTS |
Article Number: 167 | Rating: Unrated | Last Updated: Sun, Jan 5, 2014 at 9:03 PM
|
About nginxnginx is a high performance web server software. It is a much more flexible and lightweight program than apache.Set UpThe steps in this tutorial require the user to have root privileges. You can see how to set that up in the Initial Server Setup Tutorial in steps 3 and 4.Install nginxTo install nginx, open terminal and type in:sudo apt-get install nginxWhen prompted, say yes. nginx is now installed on your virtual private server. Start nginxnginx does not start on its own. To get nginx running on your server, type:sudo service nginx start RESULTS: Confirm That nginx Has StartedYou can confirm that nginx has been installed as your web server by directing your browser to your IP address.**You can run the following command to reveal your virtual server’s IP address. ifconfig eth0 | grep inet | awk '{ print $2 }'When you visit your IP address page in your browser, you will see the words, "Welcome to nginx” You can see a screenshot of the utilitarian nginx welcome page here To ensure that nginx will be up after reboots, it’s best to add it to the startup. Type this command into terminal: update-rc.d nginx defaultsYou may see a message like: System start/stop links for /etc/init.d/nginx already exist.If that is the case, then nginx is set up to run on startup, and you are all set. Congratulations! You have now installed nginx |
Attachments
![]()
There are no attachments for this article.
|
How to Get Started With mod_pagespeed with Apache on an Ubuntu and Debian Cloud Server
Viewed 4014 times since Thu, Dec 26, 2013
How To Set Up an NFS Mount on Ubuntu 12.04
Viewed 10654 times since Tue, Dec 24, 2013
How To Install and Use Docker: Getting Started
Viewed 4009 times since Sat, Jan 4, 2014
How To Use HAProxy to Set Up MySQL Load Balancing
Viewed 8401 times since Thu, Dec 26, 2013
How To Install And Run A Node.js App On Centos 6.4 64bit
Viewed 10623 times since Sun, Dec 29, 2013
How To Setup a Rails 4 App With Apache and Passenger on CentOS 6
Viewed 3855 times since Thu, Dec 19, 2013
How To Install (LEMP) nginx, MySQL, PHP stack on Arch Linux
Viewed 13854 times since Sun, Dec 29, 2013
How To Set Up MySQL Master-Master Replication
Viewed 3117 times since Thu, Dec 26, 2013
Docker Explained: How To Containerize and Use Nginx as a Proxy
Viewed 12190 times since Sat, Jan 4, 2014
How To Install Z Shell (zsh) on a Cloud Server
Viewed 2897 times since Fri, Dec 27, 2013
|