Ubuntu使用代理服务器上网

首先在windows上下载一个CCProxy搭建正向代理服务器;

我主要使用的工具有浏览器和apt工具,所以,暂时设置了这两个使用windows的代理服务器;

1.设置浏览器的代理服务器:如图所示;

2. 设置apt工具的代理服务器,打开apt.conf文件

sudo gedit /etc/apt/apt.conf

加入

Acquire::http::proxy "http://172.23.11.40:808/";
Acquire::http::proxy "http://172.23.11.40:808/";
Acquire::https::proxy "https://172.23.11.40:2121/";

猜你喜欢

转载自blog.csdn.net/lanluyug/article/details/84943380