squid代理yum,docker,rpm

来源:互联网 发布:syslog日志接受软件 编辑:程序博客网 时间:2024/05/17 03:10

跳板机上设置

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
0 0
原创粉丝点击