NginX
Installation
NginX Installation on Ubuntu 12.04
#apt-cache search nginx
nginx - small, but very powerful and efficient web server and mail proxy
#apt-get install nginx
#nginx -v
nginx version: nginx/1.1.19
. UPGRADE
- $sudo apt-get install python-software-properties
- $sudo apt-get install software-properties-common
- $sudo add-apt-repository ppa:nginx/stable
- $sudo apt-get update #update of repository
- $sudo apt-get install nginx
$nginx -v
nginx version: nginx/1.6.2
NginX Installation on Centos6.5
#cd /usr/src
#rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
#yum install nginx16
#nginx -v
nginx version: nginx/1.6.2
Start, stop, restart
#service nginx start
#service nginx stop
#service nginx restart
Important files
/var/run/ngnix.pid - file with process id number
/etc/nginx - config files
/etc/nginx/nginx.conf -basic config file
/usr/share/nginx/html/ -nginx welcome page