yum 安装nginx

1.下载一个rpm包

wget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm

2 .安装这个rpm包

rpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm 

3 开始正式安装nginx

yum install nginx

posted on 2014-09-05 17:25  张扬个性,敢为天下先  阅读(261)  评论(0编辑  收藏  举报