场景:最近有很多软件需要通过git来下载,但是通过vps代理发现,总是出现拒绝连接的问题。
https://www.digglife.net/articles/squid-for-git-proxy.html
根据该作者的建议:
修改squid.conf和安装socat
*修改squid的过程中出现:
“squid: ERROR: No running copy”
注意看一下squid服务是否正常启动,如果没有启动,请重新启动并设置开启自启
#启动start(停止stop)
systemctl start squid.service
#配置开机自启动
systemctl enable squid.service
1)yum data not enough
但是在安装scocat中出现:
“yum doesn’t have enough cached data to continue.”
通过下面的文章解决了问题:
https://www.cnblogs.com/rwxwsblog/p/5765886.html
*socat 安装:
yum -y install epel-release
yum -y install socat