centos 配置代理

首先下载cntlm并安装:http://ftp.awk.cz/pub/cntlm-0.93beta5-1.i386.rpm


1。全局代理配置
编辑/etc/bashr  或 ~/.bashrc 加入如下代码
export http_proxy=127.0.0.1:3128
export https_proxy=127.0.0.1:3128
export ftp_proxy=127.0.0.1:3128 


2.修改cntlm 配置文件
打开cntlm配置文件 /etc/cntlm.conf
加入如下代码:
 Username 代理用户名
Domain  所属域
Password 代理密码  

#Workstation netbios_hostname # Should be auto-guessed
Proxy  代理ip:端口
Proxy  192.168.80.19:8080
#
# This is the port number where Cntlm will listen
#
Listen  3128     #这个地方不要忘了,与/etc/bashr  里的一致

 
3。启动cntlm   
/etc/init.d/cntlmd restart
4.chkconfig 默认启动
chkconfig --add cntlmd
chkconfig --level 345 cntlmd
5.浏览器添加代理
127.0.0.1:3128  #之前在/etc/bashr  设置的
原文地址:https://www.cnblogs.com/zxyl/p/3082027.html