开发板通过主机http代理服务器上网方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xiang_freedom/article/details/91530704

背景

  • 开发板可以连接主机电脑
  • 主机可以联网,安装了python、pip

步骤

主机上启动代理服务器

pip install --upgrade proxy.py
proxy.py --hostname 0.0.0.0 --port 8899

https://github.com/abhinavsingh/proxy.py

  • 开发板bash设置代理
export http_proxy='http://192.168.0.1:8899'    
export https_proxy='https://192.168.0.1:8899'
# 192.168.0.1是主机ip

https://askubuntu.com/questions/583797/how-to-set-a-proxy-for-terminal

猜你喜欢

转载自blog.csdn.net/xiang_freedom/article/details/91530704