reblue520

网络环境说明:

物理机windows xp sp3系统 ip:192.168.29.21(通过路由上网,有权限设置proxy给其他机器代理上网)

虚拟机centos5.5系统 ip:192.168.29.87(由于网络没有开,无法上网,开通yum的外网权限方便做实验)

目的:

设置centos5.5的yum代理来上网


通过设置centos

  1. 把虚拟机29.87加入到proxy允许上网的组中,可以通过 /etc/sysconfig/network-scripts/下的efcfg-eth0文件获取

    head 10 /etc/sysconfig/network-scripts/efcfg-eth0


设置yum

vi /etc/yum.conf

在最后一行加入

proxy=http://192.168.29.21:808



如果使用wget命令,需要设置wgetrc

vi /etc/wgetrc

在最后加上

http_proxy=http://192.168.29.21:808

ftp_proxy=http://192.168.29.21:2121

use_proxy = on





分类:

技术点:

相关文章:

  • 2021-11-08
  • 2021-12-10
  • 2021-09-07
  • 2022-12-23
  • 2021-10-15
  • 2021-08-30
  • 2021-11-27
猜你喜欢
  • 2022-02-07
  • 2022-12-23
  • 2022-01-10
  • 2021-11-20
  • 2022-02-07
相关资源
相似解决方案