Amazon web services Chef服务器安装错误

Amazon web services Chef服务器安装错误,amazon-web-services,amazon-ec2,chef-infra,Amazon Web Services,Amazon Ec2,Chef Infra,我是厨师的新手。我正在尝试在ec2 centos实例上安装chef server 我正在安装chef服务器 但我在安装的第8步遇到了错误 [root@ip-10-105-203-174 ~]# knife configure -i /usr/lib/ruby/gems/1.8/gems/ohai-7.0.4/lib/ohai/loader.rb:188: warning: character class has `[' without escape /usr/lib/ruby/gems/1.8/

我是厨师的新手。我正在尝试在ec2 centos实例上安装chef server

我正在安装chef服务器

但我在安装的第8步遇到了错误

[root@ip-10-105-203-174 ~]# knife configure -i
/usr/lib/ruby/gems/1.8/gems/ohai-7.0.4/lib/ohai/loader.rb:188: warning: character class has `[' without escape
/usr/lib/ruby/gems/1.8/gems/ohai-7.0.4/lib/ohai/loader.rb:188: warning: regexp has `]' without escape
Overwrite /root/.chef/knife.rb? (Y/N)Y
Please enter the chef server URL: [https://ip-10-105-23-174:443] https://10.105.23.174
Please enter a name for the new user: [root]
Please enter the existing admin name: [admin]
Please enter the location of the existing admin's private key: [/etc/chef-server/admin.pem]
Please enter the validation clientname: [chef-validator]
Please enter the location of the validation key: [/etc/chef-server/chef-validator.pem] /root/.chef/chef-server/chef-validator.pem
Please enter the path to a chef repository (or leave blank):
Creating initial API user...
Please enter a password for the new user:
ERROR: Connection refused connecting to https://10.105.203.174/users, retry 1/5
ERROR: Connection refused connecting to https://10.105.203.174/users, retry 2/5
ERROR: Connection refused connecting to https://10.105.203.174/users, retry 3/5
ERROR: Connection refused connecting to https://10.105.203.174/users, retry 4/5
ERROR: Connection refused connecting to https://10.105.203.174/users, retry 5/5
ERROR: Network Error: Connection refused - Connection refused connecting to https://10.105.23.174/users, giving up
Check your knife configuration and network settings

这是正确的教程吗。请帮我解决这个问题。

您似乎为chef做了正确的事情,但这似乎是一个基本的网络问题。如果我理解正确,您已登录到厨师服务器,并试图在同一个框上设置刀子以与自己联系。Chef服务器是否正在运行?使用“netstat-an”并验证:443端口上是否有正在等待的内容。您可以使用其他主机的浏览器与它联系吗?你也可以考虑在另一台机器上安装“刀”并运行相同的东西。

< P>你是否提供了一个有效的厨师服务器URL。乍一看,您提供的是工作站ip地址。

我提供的ip地址与安装chef服务器的ip地址相同10.105.203.174。此外,安全组中的所有端口都已启用。如何使主机名可解析?我认为这是服务器的/etc/hosts文件的问题所在。类似于10.105.203.174的几个主机名,因此我建议首先设置服务器的主机名,而不是将其留给amazon托管主机名。然后再次在服务器上运行chef server ctl重新配置。完成后。请尝试配置您的工作站。安全组中的所有端口都已打开!!我给出了正确的url 10.105.203.174。是否需要安装apache for chef?是否可以添加以下输出:
sudo chef服务器ctl status
问题已解决。主机名无法解析。请共享您的刀片配置好吗?