【问题标题】:Failed to open tcp:8080 port on Google Cloud无法在 Google Cloud 上打开 tcp:8080 端口
【发布时间】:2017-10-09 06:17:48
【问题描述】:

Google Cloud Firewall Setting

我当前的谷歌云自定义防火墙规则如上所示。我想打开端口 8080 向谷歌计算引擎实例发送 curl 请求。

我将从计算引擎获取响应的命令是 -

(echo -n '{"data": "'; base64 cat.0.jpg; echo '"}') | curl -X POST -H "Content-Type: application/json" -d @- http://Compute-Engine-Static-IP-Address:8080

但是,当我在 Windows 中使用命令提示符发送上述命令时,我收到了错误 curl: (7) Failed to connect to 214.137.154.104.bc.googleusercontent.com port 8080: Connection refused

我也用nmap扫描过,发现8080端口被关闭了。

Scan report from nmap

【问题讨论】:

    标签: curl tcp google-cloud-platform google-compute-engine


    【解决方案1】:

    是否有另一个具有更高优先级的防火墙规则阻止它?另外,你能确定实例实际上在监听 8080 吗?是否有正在运行的进程在该端口上提供服务?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-01-27
      • 2017-09-22
      • 1970-01-01
      • 1970-01-01
      • 2020-04-20
      • 2020-10-28
      • 2019-12-23
      • 2018-12-29
      相关资源
      最近更新 更多