![Linux Knife(Chef)代理](https://linux22.com/image/1619203/Linux%20Knife%EF%BC%88Chef%EF%BC%89%E4%BB%A3%E7%90%86.png)
我有
chef_server_url 'https://192.168.1.1/organizations/orgname'
在我的
.chef/knife.rb
随着
knife[:bootstrap_proxy] = "http://172.16.1.254:3128/"
knife[:http_proxy] = "http://172.16.1.254:3128/"
刀具状态显示我
knife status
ERROR: Errno::ENETUNREACH: Failed to open TCP connection to 192.168.1.1:443 (Network is unreachable - connect(2) for "192.168.1.1" port 443)
因此,代理设置不起作用。
如何解决?
我更喜欢 sock 5 代理。
答案1
请检查https://docs.chef.io/proxies/和https_proxy
设置