有没有啥简单办法能让Terminal永远自由的使用互联网?
Tofloor
poster avatar
wksd
deepin
2019-08-15 05:32
Author
???
现在的方法没开一个新窗口就得输入一条,有点麻烦,
Reply Favorite View the author
All Replies
lookfor
deepin
2019-08-15 06:10
#1
写到 .bashrc里
Reply View the author
187******09
deepin
2019-08-15 17:46
#2
  1. alias on="export http_proxy=http://127.0.0.1:8118 https_proxy=http://127.0.0.1:8118"
  2. alias off="unset http_proxy https_proxy"
Copy the Code
on 打开,off 关闭。把第一行`alias on=`和双引号都去掉,只保留引号里的东西新开终端就是默认开启的,然后 off 关闭。
至于具体参数,看你自己的配置
Reply View the author
aida
deepin
2019-08-15 18:06
#3
env all_proxy=socks5://127.0.0.1:1234

或者使用proxychains
Reply View the author