如何在Windows服务器上运行solr以便它自动启动? [英] How to run solr on a windows server so it starts up automatically?

查看:985
本文介绍了如何在Windows服务器上运行solr以便它自动启动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Windows服务器上运行solr,它会自动启动?

How can I run solr on a windows server, so it starts up automatically?

我运行它:

java -jar start.jar

但是我需要服务器自动执行此操作。

but I need the server to do this automatically.

推荐答案

使用您需要的命令创建批处理文件并在启动时运行它: 这些想法可能有用。

Create a batch file with the command you need and run it on startup: some of these ideas might be of use.

如果你在tomcat中运行solr,你可以启动tomcat作为Windows服务并将服务设置为自动启动。

If you ran solr inside tomcat, you could start tomcat as a windows service and set the service to start automatically.

这篇关于如何在Windows服务器上运行solr以便它自动启动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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