20aafb97-9ddc-46eb-874d-594504716f参考文献 https://blog.csdn.net/weixin_63594197/article/details/138069939 编辑虚拟网络编辑器,使用NAT模式【VMnet8】
检查网关192.168.222.2
查看宿主机VMnet8网卡IP地址必须为:192.168.222.1
编辑虚拟机网络配置VMnet8
配置系统代理 Centos
export http_proxy="http://192.168.222.1:23457"
export https_proxy="http://192.168.222.1:23457"
//查看是否配置成功
echo $https_proxy
//显示结果:http://192.168.222.1:23457
echo $http_proxy
//显示结果:http://192.168.222.1:23457