centos7 配置代理服务器,让内网服务器可以使用yum或直接访问外网

一、系统版本

二、安装squid代理server软件

三、客户端配置yum源代理

四、设置代理上网

五、参考


一、系统版本


二、安装squid代理server软件

# yum install squid

# cd /etc/squid/

# cp squid.conf squid.conf`date +%F`

# vi squid.conf

# systemctl start squid

# systemctl status squid

# systemctl enable squid

三、客户端配置yum源代理



四、设置代理上网



五、参考:

https://www.css3er.com/p/351.html

六、全局代理

在/etc/profile中添加一下内容:

export proxy=http://192.168.7.123:3128

export http_proxy="http://192.168.7.123:3128"

export https_proxy="http://192.168.7.123:3128"

export ftp_proxy="http://192.168.7.123:3128"


# source /etc/profile

测试:

测试


下载测试
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。