GCP-我在GCP中创建了一个VM实例并安装了Jenkins。
当我像下面那样卷曲时,它可以工作。
curl -vvv jenkins:8080
* Rebuilt URL to: jenkins:8080/
* Trying 10.160.0.2...
* TCP_NODELAY set
* Connected to jenkins (*.*.*.*) port 8080 (#0)
但是当我尝试用ip连接它时,它没有连接。
curl -vvv *.*.*.*:8080
* Rebuilt URL to: *.*.*.*:8080/
* Trying *.*.*.*...
* TCP_NODELAY set
* connect to *.*.*.* port 8080 failed: Connection timed out
* Failed to connect to *.*.*.* port 8080: Connection timed out
* Closing connection 0
curl: (7) Failed to connect to *.*.*.* port 8080: Connection timed out