blog icon indicating copy to clipboard operation
blog copied to clipboard

Linux 终端代理

Open v4if opened this issue 8 years ago • 0 comments

sudo vi /etc/apt/apt.conf
#vi 下面非插入模式x删除字符
Acquire::http::proxy "http://<proxy>:<port>/";
Acquire::ftp::proxy "ftp://<proxy>:<port>/";
Acquire::https::proxy "https://<proxy>:<port>/";

之后可以安装proxychains对命令进行代理

sudo vi /etc/proxychains.conf
#dpkg -l 可以查询可用包
dpkg -l python*

v4if avatar Apr 26 '18 13:04 v4if