Comments (6)
您好,请教一下这里是如何实现使用http而不是https请求的?
# curl http://127.0.0.1:10252/debug/controllers/garbagecollector/graph?uid=639d5269-d73d-4964-a7de-d6f386c9c7e4
from blog.
看你的kcm版本。将端口换成 --secure-port 指定的端口。然后类似这样。替换证书文件路径即可
curl https://{ip}:{port}/xxx --cacert {ca.crt} --cert {cert.crt} --key {key.pem}
see --bind-address instead.)
--port int
The port on which to serve unsecured, unauthenticated access. Set to 0 to disable. (default 10252) (DEPRECATED: see --secure-port instead.)
from blog.
这还是用https而不是http呀?我看你文章里贴的地址是http的
from blog.
你到底要用http还是https呀。http就是文章说的那种方式。https就是上面回答的方式
from blog.
想用http。如果直接按照文章里说的使用 curl http://127.0.0.1:10257/debug/controllers/garbagecollector/graph?uid=xxxxxx
会报错 Client sent an HTTP request to an HTTPS server.
。可以在某个地方关掉https?还是只能在低版本使用http,高版本不再支持http了?我用的1.26
from blog.
高版本不支持了。这里写了,http方式抛弃了,要用https, 端口通过--secure-port 指定
--port int
The port on which to serve unsecured, unauthenticated access. Set to 0 to disable. (default 10252) (DEPRECATED: see --secure-port instead.)
from blog.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog.