Solr投掷';org.apache.commons.exec.ExecuteException';一开始
我正在为Centos 7安装Solr。当我尝试使用Solr投掷';org.apache.commons.exec.ExecuteException';一开始,apache,exception,solr,Apache,Exception,Solr,我正在为Centos 7安装Solr。当我尝试使用/bin/solr start-e techproducts执行任何示例项目时,其抛出错误为“Exception:org.apache.commons.exec.ExecuteException:Process退出,错误为:1(退出值:1)”。如何解决这个问题。Java安装在“/usr/bin/Java”下 我尝试更改Java主目录路径 ./bin/solr start -e techproducts *** [WARN] *** Your
/bin/solr start-e techproducts执行任何示例项目时,其抛出错误为“Exception:org.apache.commons.exec.ExecuteException:Process退出,错误为:1(退出值:1)”
。如何解决这个问题。Java安装在“/usr/bin/Java”下
我尝试更改Java主目录路径
./bin/solr start -e techproducts
*** [WARN] *** Your Max Processes Limit is currently 31165.
It should be set to 65000 to avoid operational disruption.
If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh
Solr主目录/tmp/Solr-7.7.2/example/techproducts/Solr已经存在
使用以下命令在端口8983上启动Solr:
"bin/solr" start -p 8983 -s "example/techproducts/solr"
*** [WARN] *** Your Max Processes Limit is currently 31165.
It should be set to 65000 to avoid operational disruption.
If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh
WARNING: Starting Solr as the root user is a security risk and not considered best practice. Exiting.
Please consult the Reference Guide. To override this check, start with argument '-force'
ERROR: Failed to start Solr using command: "bin/solr" start -p 8983 -s "example/techproducts/solr" Exception : org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
答案应该归于@MatsLindh(见上面的评论)。我在这里为可能遇到同样问题的其他人添加它 问题是Solr不希望您以root用户的身份运行它,也不希望您认为它是root用户(我在WSL中也看到过这个问题,其中一个不是以root用户的身份运行) 使用root存在安全风险,但您可以通过向命令中添加
-force
来强制Solr启动,例如:
bin/solr start-e cloud-force
答案应归于@MatsLindh(见上面的评论)。我在这里为可能遇到同样问题的其他人添加它
问题是Solr不希望您以root用户的身份运行它,也不希望您认为它是root用户(我在WSL中也看到过这个问题,其中一个不是以root用户的身份运行)
使用root存在安全风险,但您可以通过向命令中添加-force
来强制Solr启动,例如:
bin/solr start-e cloud-force
警告:以root用户身份启动solr存在安全风险,不被视为最佳做法。退出。请参阅参考指南。要覆盖此检查,请从参数'-force'
开始?警告:以root用户身份启动Solr存在安全风险,不被视为最佳做法。退出。请参阅参考指南。要覆盖此检查,请以参数'-force'开头。
?