我刚刚使用此页面上的说明安装了一个厨师服务器:
当我到达创建admin user的步骤时,我得到了这个回复:
[root@hostname ~]# chef-server-ctl user-create administrator admin admin email@company.com PASSWORD --filename admin.pem
ERROR: The object you are looking for could not be found
Response:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>404 Page Not Found</title>
<style type="text/css">
html {
margin: 0;
padding: 0;
font-family: Verdana, Arial, Helvetica;
}
body {
margin: 0;
padding: 0;
}
.content {
padding: 0px 10px 10px 10px;
}
h1 {
font-size: 14pt;
}
p {
font-size: 10pt;
}
</style>
</head>
<body>
<div class="content">
<h1>
404 Page Not Found
</h1>
<p>The requested URL was not found on this server. </p>
<p>Requested URL: /users/</p>
</div>
</body>
</html>
关于在哪里看的任何想法?这是Centos 6.8
谢谢!
答案 0 :(得分:0)
发现问题,其他人在端口8000上运行服务,这是erlang位在chef-server中使用的。我在chef-server.rb中添加了这个,问题解决了
opscode_erchef['port'] = 8008
参考:https://docs.chef.io/config_rb_server_optional_settings.html