局域网实现 yum

1 安装squid代理

##### 1. 安装squid
yum -y remove squid
yum -y install squid

##### 2. 修改配置文件
vi /etc/squid/squid.conf

# 3 执行以下修改

#http_access deny CONNECT !SSL_ports
http_access allow CONNECT !SSL_ports

#http_access deny all
http_access allow all

##### 4. 启动 
#/usr/sbin/squid 
service squid start 

##### 5. 查看监听端口状态 
netstat -ntl 

2. 在内网机器上设置yum代理  

vi /etc/yum.conf 
#添加
proxy=http://192.168.10.242:3128
原文地址:https://www.cnblogs.com/thinkCoding/p/3688290.html