Debian-Solr无法启动,日志文件被删除 [英] Debian - Solr doesn't start and log file is getting deleted

查看:261
本文介绍了Debian-Solr无法启动,日志文件被删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从 http://www.eu.apache.org/dist/lucene/solr/5.3.1/solr-5.3.1.tgz

然后我用tar zxvf solr-5.3.1.tgz解压缩它,并使用cd/solr-5.3.1/bin将其移到/bin/目录中,以使用以下命令启动二进制文件

Then I unpacked it with tar zxvf solr-5.3.1.tgz moved into the /bin/ directory with cd /solr-5.3.1/bin to start the binary with

./solr start

根据教程和自述文件,首次试用不需要更多.

According to tutorials and readme more is not needed for a first trial run.

等待30秒才能看到Solr在端口8983上运行

Waiting up to 30 seconds to see Solr running on port 8983

[-] 30秒后仍看不到Solr在8983上收听!

[-] Still not seeing Solr listening on 8983 after 30 seconds!

tail:无法打开"/var/solr/logs/solr.log"

tail: „/var/solr/logs/solr.log" cannot be opened for reading

因此,我创建了目录和solr.log文件,并使用

So I created the directory and the solr.log file and restarted it with

./solr start

solr会自动删除日志文件,并且错误相同,即该日志文件不可读.这是一个有趣的循环.如何找到一种读取日志文件的方法,以了解为什么solr无法启动?

The log file is automatically deleted by solr and the error is the same, that the log file is not readable. This is a funny loop. How can I find a way to read the log file to understand why solr is not starting?

java -version

java -version

java版本"1.6.0_36"

java version "1.6.0_36"

OpenJDK运行时环境(IcedTea6 1.13.8)(6b36-1.13.8-1〜deb7u1)

OpenJDK Runtime Environment (IcedTea6 1.13.8) (6b36-1.13.8-1~deb7u1)

OpenJDK 64位服务器VM(内部版本23.25-b01,混合模式)

OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)

推荐答案

我不认为日志文件会被删除-可能从未创建过. Solr和Lucene 5.3需要Java 7,因此,如果Java6 VM是用于启动Solr的JVM,它将失败.

I don't think the log file is being deleted - it's probably just never created. Solr and Lucene 5.3 require Java 7, so if the Java6 VM is the JVM used for starting Solr - it's going to fail.

您可以使用./solr start -f使Solr在前台运行以捕获任何错误,但是如果日志记录子系统从未启动,则可能效果不佳.

You can use ./solr start -f to get Solr to run in the foreground to catch any errors, but if the logging sub system never starts, it might not do much good.

这篇关于Debian-Solr无法启动,日志文件被删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆