西木-Lee

 

centos安装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 [nginx]
2 name=nginx repo
3 baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
4 gpgcheck=0
5 enabled=1
6 
7 yum install -y nginx 

 






posted on 2017-07-28 14:43  西木-Lee  阅读(102)  评论(0编辑  收藏  举报

导航