Nginx安装(yum源)

CentOS7

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

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

CentOS6

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

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/6/$basearch/
gpgcheck=0
enabled=1
$ yum -y install nginx
$ rm -rf /etc/nginx/conf.d/default.conf
posted @ 2019-06-20 10:17  侃豺小哥  阅读(6523)  评论(0编辑  收藏  举报