問題描述
我剛剛從 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
根據(jù)教程和自述文件,第一次試運行不需要更多.
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 上監(jiān)聽!
[-] 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
所以我創(chuàng)建了目錄和 solr.log 文件并重新啟動它
So I created the directory and the solr.log file and restarted it with
./solr start
日志文件被solr自動刪除了,錯誤還是一樣,就是日志文件不可讀.這是一個有趣的循環(huán).如何找到讀取日志文件的方法以了解 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 運行時環(huán)境 (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 位服務(wù)器 VM(內(nèi)部版本 23.25-b01,混合模式)
OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)
推薦答案
我不認為日志文件正在被刪除 - 它可能只是從未創(chuàng)建過.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 在前臺運行以捕獲任何錯誤,但如果日志記錄子系統(tǒng)永遠不會啟動,它可能不會有什么好處.
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.
這篇關(guān)于Debian - Solr 沒有啟動并且日志文件被刪除的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!