On company computers installed a VMWare Workstation, and then a CentOS7 above and installed after the installation is complete, we find the following questions:
- Try to ping company computer IP, barrier, set up a network installation CentOS is bridging mode.
- After changing network NAT, try to ping the computer IP company again, you can ping through. See below.
- Try to ping outside the network, but could not.
- Try yum install software prompts the following error.
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