gpt4 book ai didi

linux - Chef-server-ctl 重新配置/在 Chef 服务器上创建管理员用户

转载 作者:太空宇宙 更新时间:2023-11-04 12:37:24 25 4
gpt4 key购买 nike

我是 Linux 的新手(也是 Chef 的新手),在设置我的 Chef 服务器时遇到了问题。我正在尝试使用命令创建管理员用户

sudo chef-server-ctl user-create admin Admin Ladmin admin@example.comexamplepass -f admin.pem

但在我不断收到此错误之后:

ERROR: Connection refused connecting...

ERROR: Connection refused connecting to https://127.0.0.1/users/, retry 5/5
ERROR: Network Error: Connection refused - Connection refusedconnecting to https://..., giving up
Check your knife configuration and network settings

我还注意到,当我运行 chef-server-ctl 时,我得到了这个输出:

[2016-12-21T13:24:59-05:00] ERROR: Running exception handlers Runninghandlers complete[2016-12-21T13:24:59-05:00] ERROR: Exceptionhandlers complete Chef Client failed. 0 resources updated in 01 seconds
[2016-12-21T13:24:59-05:00] FATAL: Stacktrace dumped to/var/opt/opscode/local-mode-cache/chef-stacktrace.out
[2016-12-21T13:24:59-05:00] FATAL: Please provide the contents of thestacktrace.out file if you file a bug report
[2016-12-21T13:24:59-05:00] FATAL:Chef::Exceptions::CannotDetermineNodeName: Unable to determine nodename: configure node_name or configure the system's hostname and fqdn

我读到此错误是由于先决条件错误造成的,但我不确定它的含义或修复方法。因此,我们将不胜感激任何意见。

最佳答案

您的服务器没有有效的 FQDN(又名完整主机名)。在安装 Chef 服务器之前,您必须解决此问题。

关于linux - Chef-server-ctl 重新配置/在 Chef 服务器上创建管理员用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41269892/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com