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

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

问题描述

我想在Windows Server 2012 R2上启动一个solr核心(版本6.0.1)(命令是:bin \ solr.cmd start),并在注销后保持其运行.我还想用我自己的帐户以外的帐户运行它,并且我希望它可以自动启动.我碰到过这篇文章,如何在Windows服务器上运行solr以便它自动启动?,但是它是6年前的,所以我认为新版本可能会有新的方法.另外,我拥有的新版本不在Tomcat上运行.它充当自己的服务器,这与示例中的版本不同.谢谢!

I'd like to start a solr core (version 6.0.1) on Windows Server 2012 R2(command is: bin\solr.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!

推荐答案

您可以使用 NSSM 将Solr注册为Windows服务.

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

"c:\ Program Files \ nssm \ win64 \ nssm"安装solr6

"c:\Program Files\nssm\win64\nssm" install solr6

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

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天全站免登陆