Chinaunix首页 | 论坛 | 博客
  • 博客访问: 393258
  • 博文数量: 80
  • 博客积分: 885
  • 博客等级: 准尉
  • 技术积分: 917
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-02 11:43
个人简介

人生就是一次旅行,生活就是艺术,人人都是手艺人.

文章分类

全部博文(80)

文章存档

2023年(1)

2022年(5)

2019年(3)

2018年(1)

2017年(6)

2016年(4)

2014年(8)

2013年(20)

2012年(9)

2010年(3)

2009年(17)

2008年(3)

我的朋友

分类: 网络与安全

2022-07-14 14:37:37

1、yum代理设置

编辑文件为:/etc/yum.conf

在里面添加这一行:proxy=IP:PORT

2、wget代理设置

编辑文件为:/etc/wgetrc     
添加下面两行:
http_proxy = IP:PORT  
ftp_proxy = IP:PORT

3、系统环境代理设置

编辑文件为/etc/profile,如果只想给自己的账户设置,则编辑~/.bashrc即可

添加三行:

# add proxy for network

export http_proxy=

export https_proxy=http://proxy_ip:proxy_port

export ftp_proxy=$http_proxy

然后source /etc/profile 即可

4、curl代理设置

编辑 ~/.bashrc

alias curl = "curl -x IP:Port "

阅读(2198) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~