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

查看:75
本文介绍了正确停止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天全站免登陆