flying607

1、修改/etc/profile,增加以下内容:

http_proxy=http://[代理地址]:[代理地址的端口]/
https_proxy=http://[代理地址]:[代理地址的端口]/
export http_proxy https_proxy

2、马上生效

source /etc/profile

3、测试

可以看到,获取到的IP已经变成了代理服务器的外网IP

 

4、如果想和修改前对比,可以

unset http_proxy
curl http://toyaml.com:9999/whoami

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-12-25
  • 2021-12-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
  • 2021-11-11
  • 2021-08-28
  • 2022-12-23
相关资源
相似解决方案