正确停止 Tika 服务器 [英] Stopping a Tika server properly

查看:32
本文介绍了正确停止 Tika 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了启动一个可以从本地主机以外的主机访问的 Tika 服务器,我们知道要走的路是(假设我有 1.7 版并希望在端口 9998 上运行)

In order to start a Tika server that can be accessed from hosts other that localhost we know that the way to go is (say I have version 1.7 and want to run on port 9998)

java -jar tika-server-1.7-SNAPSHOT.jar -host 0.0.0.0

我的问题是:是否有正确的方法可以使用命令正确停止此服务器,或者是唯一的方法终止进程?

My question is: Is there a proper way to properly stop this server with a command or is killing the process the only way?

推荐答案

截至 2019 年 10 月,尚无以编程方式将其关闭.文档 注释:

As of October 2019 there is no programmatic way to shut it down. Documentation notes:

未来,我们可能会实施比目前更温和的关闭.

In the future, we may implement a gentler shutdown than we currently have.

这篇关于正确停止 Tika 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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