报错
* About to connect() to proxy 192.168.43.21 port 1081 (#0)
* Trying 192.168.43.21...
* Connection refused
现象与处理:
[root@k8stest ~]# curl -v -X PUT 192.168.0.11:8087/new?size=1
* About to connect() to proxy 192.168.43.21 port 1081 (#0)
* Trying 192.168.43.21...
* Connection refused
* Failed connect to 192.168.43.21:1081; Connection refused
* Closing connection 0
curl: (7) Failed connect to 192.168.43.21:1081; Connection refused
[root@k8stest ~]#
[root@k8stest ~]# env|grep -i proxy
http_proxy=http://192.168.43.21:1081/
ftp_proxy=http://192.168.43.21:1081/
[root@k8stest ~]#
[root@k8stest ~]# unset http_proxy ftp_proxy
[root@k8stest ~]#
重新curl:
[root@k8stest ~]# curl -v -X PUT 192.168.0.11:8087/new?size=1
* About to connect() to 192.168.0.11 port 8087 (#0)
* Trying 192.168.0.11...
* Connected to 192.168.0.11 (192.168.0.11)