Installing Tinyproxy on CentOS 7
For RHEL/CentOS 7 systems, Tinyproxy is part of EPEL (Extra Packages for Enterprise Linux).
Install EPEL on CentOS 7
yum install epel-release -y
yum update -y
Install Tinyproxy on CentOS 7
yum install tinyproxy -y
编辑配置文件
vim /etc/tinyproxy/tinyproxy.conf
# 注释掉这一行
# Allow 127.0.0.1
# 修改端口号 可以自己设置
Port 41801
修改完:wq
重启服务:
systemctl restart tinyproxy
出现问题查看日志
# 日志路径:
/var/log/tinyproxy/tinyproxy.log
# 查看日志 :
tail -f /var/log/tinyproxy/tinyproxy.log
常用命令
systemctl restart tinyproxy.service
systemctl stop tinyproxy.service
systemctl status tinyproxy.service
systemctl enable tinyproxy.service
内网docker配置代理
/etc/systemd/system/docker.service.d/http-proxy.conf
Environment="HTTPS_PROXY=xx.xx.xx.xx:12015"
Environment="HTTP_PROXY=xx.xx.xx.xx:12015"
Environment="NO_PROXY=localhost,127.0.0.1,docker-registry.somecorporation.com"