我正在使用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接口。
发布于 2022-09-20 08:27:14
它的工作方式是将--server.endpoint "https://localhost:8529"或--server.endpoint "http+ssl://localhost:8529"替换为--server.endpoint "tcp://localhost:8529"。
我得到了https://www.arangodb.com/docs/stable/programs-arangosh-examples.html的帮助
https://stackoverflow.com/questions/73776449
复制相似问题