Nginx is open source and alternative to Apache httpd web server. Its provide more performance and little memory foot print.
In this post i given clear steps to install NginX web server on ubuntu 12.04 operating system . We can install nginx by 2 ways
First Step : Installation from Ubuntu PPA
sudo -s
nginx=stable # use nginx=development for latest development version
add-apt-repository ppa:nginx/$nginx
apt-get update
apt-get install nginx
After that nginx will be installed in default location usr/local/nginx
To start nginx server do the following steps
Open terminal and type : cd /usr/local/nginx/sbin/
sudo ./nginx
Nginx is started now to check open browser and type localhost
if u can see this that's all your nginx server is installed.
Second Step : Installation from Source
If you want to install from source you need to download nginx latest version from nginx website and do the following steps in terminal . Currently stable version is nginx.1.4.1 check here for versions
wget http://nginx.org/download/nginx-1.4.1.tar.gz
tar xzf nginx-1.4.1.tar.gz
cd nginx-1.4.1
cd nginx-1.4.1
Build nginx by following steps
Build nginx by following steps
sudo ./configure
sudo ./configure
sudo make
sudo make
sudo make install
sudo make install
Nginx will be installed in default location usr/local/nginx . If you want to install in different location follow below steps
Nginx will be installed in default location usr/local/nginx . If you want to install in different location follow below steps
./configure --prefix=/home/giluxe/nginx
./configure --prefix=/home/giluxe/nginx
you can give your own path using --prefix option . To start nginx go to nginx installed directory and execute ./nginx in sbin folder.
you can give your own path using --prefix option . To start nginx go to nginx installed directory and execute ./nginx in sbin folder.
Sudo, in its most common configuration, requires the user to type his password. Typically, the user already used his password to authenticate into the account, and typing the password again is a way to confirm that the legitimate user hasn't abandoned his console and been hacked.
ReplyDeleteThanks
Silvester Norman
Change Mac Address