本文介绍了如何连接到保险柜服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想尝试,所以我配置了 VAULT_ADDR
as:
I wanted to give a try to vault, so I configured VAULT_ADDR
as:
$ echo $VAULT_ADDR
http://127.0.0.1:8200
然后我以开发人员模式启动Vault( vault服务器-dev
),一切正常,我能够连接到服务器。
then I started vault in dev mode (vault server -dev
) and everything was ok, I was able to connect to the server.
然后,我编写了一个非常简单的配置文件:
Then I wrote a really simple config file:
$ cat vault.config
backend "inmem"
listener "tcp" {
address = "127.0.0.1:8200"
tls_disable = 1
}
disable_mlock = true
,然后使用 vault服务器-config = vault.config
重新启动服务器,但是当我连接到服务器时,得到:
and I restarted the server with vault server -config=vault.config
, but then when I connect to the server, I get:
$ vault status
Error checking seal status: Get http://127.0.0.1:8200/v1/sys/seal-status: dial tcp 127.0.0.1:8200: getsockopt: connection refused
是我的配置文件有问题吗?
Is there something wrong in my config file?
推荐答案
您需要像这样配置后端:
You need to configure the back end like this:
backend "inmem" {}
否则,解析侦听器子句就会出现问题。
otherwise there is a problem parsing the listener clause.
这篇关于如何连接到保险柜服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!