centos6.2 使用yum快速安装nginx 发表于 2019-01-07 更新于 2026-03-03 分类于 技术分享 To add nginx yum repository, create a file named /etc/yum.repos.d/nginx.repo and paste one of the configurations below: CentOS: 12345[nginx]name=nginx repobaseurl=http://nginx.org/packages/centos/$releasever/$basearch/gpgcheck=0enabled=1 After this: 1yum install nginx