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

相关文章:

  • 2021-08-18
  • 2022-01-23
  • 2021-05-07
  • 2021-06-21
  • 2021-07-01
猜你喜欢
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-09-20
  • 2021-11-17
相关资源
相似解决方案