[英]kube-arangodb: Can not connect with `arangosh`
我在 minikube 上使用arango-single-server
。 通過以下方式使用kubectl
安裝: https://www.arangodb.com/docs/stable/tutorials-kubernetes.html
在錯誤消息之后:
➜ kubectl exec -it arango-single-server-sngl-d0leq3in-d9649f -- arangosh --server.endpoint "tcp://localhost:8529" --server.database "_system"
Defaulted container "server" out of: server, init-lifecycle (init), uuid (init)
Please specify a password:
_
__ _ _ __ __ _ _ __ __ _ ___ ___| |__
/ _` | '__/ _` | '_ \ / _` |/ _ \/ __| '_ \
| (_| | | | (_| | | | | (_| | (_) \__ \ | | |
\__,_|_| \__,_|_| |_|\__, |\___/|___/_| |_|
|___/
arangosh (ArangoDB 3.9.3 [linux] 64bit, using jemalloc, build tags/v3.9.3-0-gb9cd8359a1a, VPack 0.1.35, RocksDB 6.27.0, ICU 64.2, V8 7.9.317, OpenSSL 1.1.1q 5 Jul 2022)
Copyright (c) ArangoDB GmbH
Command-line history will be persisted when the shell is exited. You can use `--console.history false` to turn this off
Could not connect to endpoint 'tcp://localhost:8529', database: '_system', username: 'root'
Error message: 'Connection closed'
localhost:8529@_system>
根據 netstat 的結果;
➜ kubectl exec -it arango-single-server-sngl-d0leq3in-d9649f -- netstat -a
Defaulted container "server" out of: server, init-lifecycle (init), uuid (init)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 localhost:56568 localhost:8529 ESTABLISHED
tcp 0 0 :::8529 :::* LISTEN
tcp 0 0 localhost:8529 localhost:56568 ESTABLISHED
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 3 [ ] DGRAM 3845565
unix 3 [ ] DGRAM 3845564
任何想法,有什么問題?
我可以訪問gui界面。
它通過放置--server.endpoint "https://localhost:8529"
或--server.endpoint "http+ssl://localhost:8529"
而不是--server.endpoint "tcp://localhost:8529"
" 來工作--server.endpoint "tcp://localhost:8529"
我從https://www.arangodb.com/docs/stable/programs-arangosh-examples.html得到幫助
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.