Solr无法启动,日志文件被删除

时间:2016-01-04 07:15:35

标签: solr

solr-5.4.0版本

我的Java版

sudo service solr start

Waiting up to 30 seconds to see Solr running on port 8983 [/]  Still not seeing Solr listening on 8983 after 30 seconds!
tail: cannot open ‘/var/solr/logs/solr.log’ for reading: No such file or directory

我做了所有步骤,最终得到了这个错误

string username = Session["username"].ToString();   
var aa = dbobj.Carts.Single(x => x.UserName == username);
int count = dbobj.Carts.Where(x => x.ItemId == aa.ItemId).Count();
TempData["QuantityCount"] = count;

我创建了touch solr.log文件。但是会启动solr日志文件被删除。

如何解决此错误?

1 个答案:

答案 0 :(得分:0)

我的流浪盒上有同样的问题。当我将Vagrantfile中的vb.memory提升到1024时,它已经消失了:

    config.vm.provider "virtualbox" do |vb|
     # Customize the amount of memory on the VM:
     vb.memory = "1024"
   end