centos6.2 使用yum快速安装nginx

To add nginx yum repository, create a file named /etc/yum.repos.d/nginx.repo and paste one of the configurations below: CentOS:

1
2
3
4
5
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1

After this:

1
yum install nginx