centos7操作系统下如果把本机作为代理服务器

就是一台centos7的服务器 如果把它作为代理服务器 让其他电脑通过他的ip上网

已经有很成熟的经验centos7操作系统下把本机作为代理服务器,希望对你有帮助:
http://jingyan.baidu.com/article/a24b33cd51f0b619ff002b7e.html
其实主要还是如下操作:
1.全局的代理设置:
vi /etc/profile
添加下面内容
http_proxy = http://username:password@yourproxy:8080/
ftp_proxy = http://username:password@yourproxy:8080/
export http_proxy
export ftp_proxy
2.yum的代理设置:
vi /etc/yum.conf
温馨提示:答案为网友推荐,仅供参考
第1个回答  2017-05-17
你这个算问题?其实你就直接说装有centos7的系统,作为服务器,让其他电脑通过他的ip上网
你就把它的ip当成是网关就好了
相似回答