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
解压到/bin/目录,用 cd/solr-5.3.1/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-版本
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.
相关文章