current position:Home>Configure Yum proxy

Configure Yum proxy

2022-06-24 12:45:22Chen 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

copyright notice
author[Chen Bucheng I],Please bring the original link to reprint, thank you.
https://en.chowdera.com/2022/175/20210526152008318m.html

Random recommended