Replies: 1 comment
-
如果有一台境外 VPS 服务器,可以轻松使用 tinyproxy 部署一个轻量级的HTTP/HTTPS代理服务,可方便用于类似 GitHub 等需要代理的服务或软件.
# 测试,查看返回的ip地址,如果是代理服务器地址,则表示http代理设置成功
curl -x https://user:password@IP:8888 cip.cc
curl -x https://user:password@IP:8888 httpbin.org/ip
git配置代理s://gist.github.com/laispace/666dd7b27e9116faece6),
git config --global http.proxy
参考 git配置代理 https://stackoverflow.com/questions/16067534/only-use-a-proxy-for-certain-git-urls-domains |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
今天我们来介绍一款同时支持 HTTP/HTTPS 的轻量级代理软件 TinyProxy,TinyProxy 支持以下功能特性:
TinyProxy 目前已支持大多数发行版通过软件包安装,下面介绍下比较常用的几个平台的安装方式。
有些场景,linux服务器处于内网或者无法直接访问外网,并且没有公网ip。
故要想与外网进行http/https通信只能通过nat或者加proxy的方式。
nat服务器有网段的限制,而http/https proxy代理则没有,使用起来也方便。
Linux 中的大部分命令都可以使用http代理,ftp, wget, curl, ssh, apt-get, yum 等等。
linux系统设置http/https proxy的方法,在 ~/.bashrc 或者 /etc/profile 中添加如下环境变量:
检查代理是否生效
取消代理设置
一些免费的http代理
在 windows 安装 http 代理服务器
https://blog.csdn.net/qwert678000/article/details/78789974
在有些场景,我们可以在windows下运行http代理服务器软件,Apache httpd 就可以很好的做为一个http代理软件来运行。也有windows版本。
本文是以windows系统来代理服务器,linux客户端使用此代理服务。若是想windows使用其服务,比如浏览器使用直接配置浏览器的网络配置为代理即可。
下载地址:https://www.apachehaus.com/cgi-bin/download.plx
下载最新的适合自己的windows系统版本即可。下载后解压:
打开配置文件 Apache24/conf/httpd.conf
38-39行修改根目录为自己放置Apache24的目录,这里不修改启动会报错:
Beta Was this translation helpful? Give feedback.
All reactions