本人刚入门,在vitual box内安装了24.03-LTS-SP2.已在etc/profile和etc/environment内加入
export http_proxy=http://www.www.www:3128
export https_proxy=http://www.www.www:3128
export no_proxy=127.0.0.1
但执行ping www.openeuler.org仍是100% packet loss.
请问应如何设置代理?
本人刚入门,在vitual box内安装了24.03-LTS-SP2.已在etc/profile和etc/environment内加入
export http_proxy=http://www.www.www:3128
export https_proxy=http://www.www.www:3128
export no_proxy=127.0.0.1
但执行ping www.openeuler.org仍是100% packet loss.
请问应如何设置代理?
代理是不能 ping 的,可以使用 curl www.baidu.com 或 yum makecache 测试
另外如果用的 squid 代理,需要修改 squid 配置文件:http_access allow all