Edited at

Install Nginx 1.8.0 in CentOS 6.6

More than 3 years have passed since last update.


Install Nginx 1.8.0 in CentOS 6.6

Epel's nginx is 1.0.15, which is kind old.

add repository

vi /etc/yum.repos.d/nginx.repo

[nginx]

name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1

yum install nginx

$ nginx -v

nginx version: nginx/1.8.0

Start nginx

service nginx start

Start nginx on boot

chkconfig nginx on

ref:

http://wiki.nginx.org/Install