在 Windows 服务器的后台运行 Solr 6.0.1 [英] Run Solr 6.0.1 in background on Windows server

查看:32
本文介绍了在 Windows 服务器的后台运行 Solr 6.0.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 Windows Server 2012 R2 上启动 solr 核心(版本 6.0.1)(命令是:binsolr.cmd start),并在注销后保持运行.我还想在我自己以外的帐户下运行它,并且我希望它自动启动.我看到了这篇文章,如何在windows服务器上运行solr让它自动启动?,不过是6年前的事了,所以我觉得新版本可能会有新的方式.另外,我的新版本没有在 Tomcat 上运行.它充当自己的服务器,这是与示例中的版本的另一个不同之处.谢谢!

解决方案

您可以使用 NSSM将 Solr 注册为 Windows 服务.><块引用>

"c:Program Files ssmwin64 ssm" 安装 solr6

使用 -f 参数在前台运行 Solr 很重要(在这种情况下意味着在 NSSM 内运行它").这可以在为 NSSM(参数")弹出的框中更改.您还可以在登录"下选择运行服务的用户.

I'd like to start a solr core (version 6.0.1) on Windows Server 2012 R2(command is: binsolr.cmd start), and keep it running after logging off. I'd also like to run it under an account other than my own, and I'd like it to start up automatically. I came across this post, How to run solr on a windows server so it starts up automatically?, but it was from 6 years ago, so I thought there may be a new way with the new version. Also, the new version I have is not running on Tomcat. It acts as it's own server, which is another difference from the version in the example. Thanks!

解决方案

You can use NSSM to register Solr as a Windows Service.

"c:Program Files ssmwin64 ssm" install solr6

It's important that you use the -f parameter to run Solr in the foreground (which in this case means "run it inside NSSM"). This can be changed in the box that pops up for NSSM ("Arguments"). You can also pick which user to run the service as under "Log on".

这篇关于在 Windows 服务器的后台运行 Solr 6.0.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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