Last active
May 21, 2017 11:43
-
-
Save Meelfy/55454e71df29dbf090cd650d1e16a44b to your computer and use it in GitHub Desktop.
为其他命令使用socket代理
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tsocks | |
修改 /etc/tsocks.conf : | |
server = 127.0.0.1 | |
server_type = 5 | |
server_port = 1080 | |
设置代理服务器地址,类型,端口。 | |
然后给 wget 套上 tsocks 运行,就可以访问代理了(如果之前设置了 http 代理,要先清除掉)。 | |
tsocks wget http://…… | |
一个实际用例,下载Abaqus软件 | |
tsocks axel -n 10 -o ~/Downloads https://download.3ds.com/dl/4805892d18698f0991cd225d73557d76/592173d2/web_support/Abaqus/2016/GA/Abaqus_2016.Abaqus_2016-SE_win86_64.exe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment