
代理使用
公众号菜鸟童靴
在不退步的同时,保持的一点点的进步,欢迎关注个人博客https://boyyongxin.github.io/
微信公众号:菜鸟童靴
展开
-
配置squid做二级代理,支持访问http和https
公司A电脑可以通过代理上网,B电脑无法连接代理服务器,但可以连接到A,因此考虑使用squid在A电脑上搭建二级代理,以达到B电脑可以访问internet的目的。以下引自squid-cache wiki:http://wiki.squid-cache.org/Features/CacheHierarchy?highlight=%28%5CbCategoryFeature%5Cb%29%7C%28faqlisted.yes%29How do I configure Squid forward all r转载 2020-08-07 10:40:02 · 1892 阅读 · 0 评论 -
解决yum报错error: %pre(xxxxx.el7_3.1.x86_64) scriptlet failed, exit status 1
解决yum报错error: %pre(xxxxx.el7_3.1.x86_64) scriptlet failed, exit status 1今天安装软件也就是squid遇到了报错本想着yum安装完事,但是却遇到报错error: %pre(squid-7:3.5.20-2.el7_3.1.x86_64) scriptlet failed, exit status 1解决方法:1.首先把rpm包下载下来yum install squid --downloadonly ..转载 2020-08-06 20:13:00 · 3381 阅读 · 0 评论 -
如何测试设置请求代理是否生效
当自已使用代理抓取网站时,怎么才能知道自己的代理,设置成功了1、代理测试目标网站:http://www.httpbin.org/ip https://ip.sb2、代码测试import requestsheaders = { "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.410...原创 2020-07-15 17:19:36 · 3215 阅读 · 0 评论