【发布时间】:2016-09-16 08:44:55
【问题描述】:
我一直在尝试使用本指南在我的 CentOS 6.5 机器上安装厨师服务器 (chef-server-core-12.1.0-1.el6.x86_64.rpm):http://docs.chef.io/server/install_server.html#standalone 这是一个测试环境,因此我没有 FQDN,但 IP 地址是可解析的。运行 chef-server-ctl reconfigure 后,我尝试使用以下命令创建用户:
[root@xxx-xxx-xxx-xxx ~]# chef-server-ctl user-create myusername myfirstname mylastname myemail mypassword --filename /root/myfile.pem
我在上述命令中填写了适当的详细信息,但我不断收到此错误:
ERROR: Connection refused connecting to https://127.0.0.1/users/, retry 5/5
ERROR: Network Error: Connection refused - Connection refused connecting to https://127.0.0.1/users/, giving up
Check your knife configuration and network settings
ngnix 服务一直宕机,无法启动。查看日志后:
tail -f /var/log/opscode/nginx/current
2015-07-01_10:59:00.69218 nginx: [emerg] invalid number of arguments in "server_name" directive in /var/opt/opscode/nginx/etc/chef_https_lb.conf:3
chef_https_lb.conf文件如下:
server {
listen 443;
server_name ;
access_log /var/log/opscode/nginx/access.log opscode;
我不确定出了什么问题。有没有大神指点一下?
【问题讨论】:
标签: chef-infra