当前位置:网站首页>Configure Yum proxy

Configure Yum proxy

2022-06-24 12:45:00 Chen Bucheng I

One . explain

Many intranet environments cannot be used yum

Two . To configure

1. install nginx

2. To configure

  1. server {
  2. listen 808;
  3. # Ban multipart range function
  4. max_ranges 1;
  5. server_name 1.1.1.1;# Local address
  6. server_tokens off;
  7. location /{
  8. access_log /var/log/mirrors.log;
  9. proxy_pass http://mirrors.aliyun.com;
  10. }
  11. }

3. add to yum agent ( Intranet machines )

vim /etc/yum.conf

  1. proxy=http://1.1.1.1:808
原网站

版权声明
本文为[Chen Bucheng I]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/05/20210526152008318m.html