Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux chef服务器安装问题_Linux_Ubuntu_Chef Infra - Fatal编程技术网

Linux chef服务器安装问题

Linux chef服务器安装问题,linux,ubuntu,chef-infra,Linux,Ubuntu,Chef Infra,我正试图按照opscode网站上的指南在LinuxUbuntu上安装chef服务器 现在,我在安装控制台时看到的第一个错误是: Setting permissions for user "chef" in vhost "/chef" ... ...done. Creating config file /etc/chef/solr.rb with new version * Starting chef-solr chef-solr

我正试图按照opscode网站上的指南在LinuxUbuntu上安装chef服务器

现在,我在安装控制台时看到的第一个错误是:

Setting permissions for user "chef" in vhost "/chef" ...
...done.

Creating config file /etc/chef/solr.rb with new version
 * Starting chef-solr  chef-solr                                         [fail] 
我在var/log/chef/solr.log中查找了solr.log

[Wed, 02 May 2012 20:32:02 -0700] FATAL: Chef Solr is not installed or solr_home_path, solr_data_path, and solr_jetty_path are misconfigured.
[Wed, 02 May 2012 20:32:02 -0700] FATAL: Your current configuration is:
[Wed, 02 May 2012 20:32:02 -0700] FATAL: solr_home_path:  /var/chef/solr
[Wed, 02 May 2012 20:32:02 -0700] FATAL: solr_data_path:  /var/chef/solr/data
[Wed, 02 May 2012 20:32:02 -0700] FATAL: solr_jetty_path: /var/chef/solr-jetty
[Wed, 02 May 2012 20:32:02 -0700] FATAL: You can install Chef Solr using the chef-solr-installer script.
我已经按照上给出的教程进行了学习

可能是什么问题?查看solr.log,发现Chef solr未安装或solr_home_路径、solr_data_路径和solr_jetty_路径配置错误。我是一个windows的家伙。如何检查是否安装了chef solr或linux中的路径存在问题


还有其他问题吗?

我通过执行以下操作解决了此问题

创建/etc/chef/solr.rb 包含以下内容:

安装solr的基本目录 supportdir=/srv/chef/support

Solr配置信息 solr_jetty_路径文件.joinsupportdir,solr,jetty

solr\u data\u path File.joinsupportdir,solr,data

solr\u home\u路径文件.joinsupportdir,solr,home

然后执行chef solr安装程序 如果您在独立jetty中运行solr,我认为您需要更改solr_jetty_路径,以指向您的jetty安装位置,例如/usr/local/jetty。我只能在进一步试验后才能证实这一点


希望这对您略有帮助

很可能您为发行版添加了错误的apt存储库

deb http://apt.opscode.com/ <codename> main
请检查此项。

对于Ruby 1.8, /缺少usr/lib64/ruby/gems/1.8/gems/chef-solr-10.16.2/lib/chef/solr/solr_installer.rb


require fileutils

为什么有人要求关闭?有人回答了这个问题吗?你找到了解决这个问题的方法吗?请不要忘记将答案标记为正确