可以使用 "curl --proxy [proxy_ip:port] -s -I -L http://www.google.com" 命令检查代理 IP 是否可用。其中 [proxy_ip:port] 需要替换成实际的代理 IP 和端口号。文章来源:https://uudwc.com/A/oLkyx
如果代理 IP 可用,命令会返回 Google 的 http 状态码;如果代理 IP 不可用,命令会返回 "curl: (7) Failed to connect to [proxy_ip] port [port] : Connection refused"。文章来源地址https://uudwc.com/A/oLkyx