CentOS7 proxy configuration

On company computers installed a VMWare Workstation, and then a CentOS7 above and installed after the installation is complete, we find the following questions:

  1. Try to ping company computer IP, barrier, set up a network installation CentOS is bridging mode.
  2. After changing network NAT, try to ping the computer IP company again, you can ping through. See below.

CentOS7 proxy configuration

  1. Try to ping outside the network, but could not.
  2. Try yum install software prompts the following error.
    CentOS7 proxy configuration

Suddenly think of it, there is a proxy of the company. Yum install software to solve some issues now! So configured proxy is yum,


[root@mus2z240 ~]# vi /etc/yum.conf
添加proxy server信息:
# in /etc/yum.repos.d
proxy=http://192.168.30.50:80
proxy=https://192.168.30.50:80
proxy_username=Yourusername
proxy_password=Yourpassword

After you have finished changing, save and exit. Run yum install vim again, you can be successfully installed.

Reproduced in: https: //blog.51cto.com/jiaszwx/2405297

Guess you like

Origin blog.csdn.net/weixin_34192732/article/details/91628624
Recommended