以下是在Ubuntu VNC中配置網絡代理的方法:
/etc/environment
文件,添加http_proxy="http://your.proxy.server:port"
、https_proxy="http://your.proxy.server:port"
和no_proxy="localhost,127.0.0.1"
,保存退出后重啟系統使設置生效。export http_proxy="http://your.proxy.server:port"
、export https_proxy="http://your.proxy.server:port"
和export no_proxy="localhost,127.0.0.1"
,可通過curl
命令驗證代理是否生效。