您的位置:首页 > 运维架构 > Docker

squid代理yum,docker,rpm

2016-10-17 17:32 267 查看
跳板机上设置

1、squid配置

$vi /etc/squid/squid.conf

 设置

# And finally deny all other access to this proxy by benjen
http_access allow all

# Squid normally listens to port 3128
http_port 10.47.118.128:3128

启动
$service squid start
查看日志:
$cd /var/log/squid

2、客户机配置
$vi /etc/yum/conf
增加

proxy=http://10.47.118.128:3128
$vi /etc/profile

#set proxy
http_proxy=10.47.118.128:3128
https_proxy=10.47.118.128:3128
ftp_proxy=10.47.118.128:3128
export http_proxy https_proxy ftp_proxy 
 $source profile
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: