linux 6.5 杂集
来源:互联网 发布:mac系统截图快捷键 编辑:程序博客网 时间:2024/06/02 06:26
yum 设置代理
CentOS5.6环境下设置yum代理
学校环境下上网需要设置代理服务器。所以新安装的CentOS无法使用yum和wget等进行操作。现把自己的配置设置显示如下:
网络上面的英文的配置资料如下:
Using yum with a proxy server
To enable yum operations to use a proxy server you should first add the following parameter to /etc/yum.conf 这个是配置代理网络之后的yum的设定
proxy=http://yourproxy:8080/
编辑/etc/yum.conf文件
这个是我们我的具体的代理的设定:在yum.conf文件的最后一行添加如下所示:
有#的是注释行 起说明作用 方便我们自己了解这行的作用
where yourproxy is the name of the proxy server you want to access and 8080 is the proxy port. If the server requires authentication you can specify the login credentials like:
proxy=http://username:password@yourproxy:8080/
The rpm package manager makes use of the proxy environment variable. This can be set system wide in /etc/profile or user specific in ~/.bash_profile::
export http_proxy=http://yourproxy:8080/
export ftp_proxy=http://yourproxy:8080/
To use wget throug a proxy server add the following lines to /etc/wgetrc 这个是配置代理网络之后的wget的设定
http_proxy = http://yourproxy:8080/
ftp_proxy = http://yourproxy:8080/
In both cases, login information can be set like in the example above.
- linux 6.5 杂集
- 6.5 linux
- Linux-6.5-服务器模型
- linux 6.5 安装vim
- Linux 6.5系统优化
- hadoop2.6.5 linux安装
- linux
- linux
- Linux
- Linux
- LINUX!
- Linux
- linux
- linux
- linux
- Linux
- linux
- linux
- HTML中      等6种空白空格的区别
- 浅谈clearfix类和clear清除浮动
- 单变量分析绘制-学习笔记
- Docker01_基础环境搭建
- MySQL绿色版安装指南
- linux 6.5 杂集
- 小白解决CENTOS7错误:Cannot find a valid baseurl for repo: base/7/x86_6
- (string)、toString()和String.valueOf()三种类型转换
- jq 判断是为数字
- 再探Linux内核write系统调用操作的原子性
- oracle数据库连接不上:ORA-01034: ORACLE not available ORA-27101
- 字符统计2
- c语言中逻辑运算符及其优先次序
- 二分查找递归与非递归实现