[问题]是否可以在此错误日志中将“端口8080”输出为“端口80”?
[程序]
$ cf push
$ cf set-health-check <myapp> --endpoint / health
$ cf logs <myapp>
-
[HEALTH / 0] ERR Failed to make HTTP request to '/ health' on port 8080: received status code 404 in 0ms
[CELL / 0] ERR Timed out after 10m0s: health check never passed.
-
似乎您在其中一个命令中可能有错字。 /
命令中health
和cf set-health-check
之间有一个空格。这似乎是在向运行状况检查所使用的URL中注入一个空格,因此它试图到达不存在的文字URL /%20health
,因此是404响应。