> 文章列表 > 办公网络设置代理服务器

办公网络设置代理服务器

办公网络设置代理服务器

背景:

在公司上班中,通常都会有自己的局域网,而对外网有所管控,而有时候我们需要在windows系统或者linux系统中设置代理网络服务器,从而方便我们查资料。

在cmd命令窗体中设置临时代理服务器的方法

linux系统中:

export http_proxy=http://zhanghu:mima@10.194.168.50:8080
export https_proxy=http://zhanghu:mima@10.194.168.50:8080

winodws系统中: 

set http_proxy=http://zhanghu:mima@10.194.168.50:8080
set https_proxy=http://zhanghu:mima@10.194.168.50:8080

永久设置代理的方法:

ubuntu20.04设置永久代理的方法:
1、打开 vi /etc/apt/apt.conf 文件

2、输入下面的proxy的配置信息就行
 Acquire::http::Proxy "http://username:password@address:port";
 也可以增加ftp和https的proxy
 Acquire::ftp::Proxy "http://username:password@address:port";
 Acquire::https::Proxy "http://username:password@address:port";

或者尝试以下方式:

# gedit  ~/.bashrc
在您的.bashrc文件末尾添加如下内容(根据你的实际情况替换yourproxyaddress和proxyport)。
http_proxy=http://10.200.136.110:808
export  http_proxy
保存后执行
# source  ~/.bashrc

windows永久设置代理的方法:

在计算机右下角点解“网络图标”-‘网络和internet设置’-‘代理’-‘手动设置代理’