Yum安装Nginx

[[email protected] ~]# vim /etc/yum.repos.d/nginx.repo
#在文件中写入以下内容:
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1
[[email protected] ~]# yum install nginx -y

赞(0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址