问题描述
从 apex文档中可以明显看出,使用apache apex启动的应用可以是使用以下命令杀死或关闭: shutdown-app
.
From the apex documentation, it is clear that an app launched with apache apex can be killed or shutdwon using the commands: kill-app
& shutdown-app
respectively.
但是,当应用程序关闭(关闭/关闭)时,如何从以前的状态重新启动呢?
But, when the application is turned off (shutdown/kill), how to restart it from its previous state?
推荐答案
Apache Apex 提供了命令行界面,"apex" (先前称为"dtcli")脚本,以与应用程序进行交互.一旦应用程序关闭或终止,您可以使用以下命令重新启动它:
Apache Apex provides a command line interface, "apex" (previously called "dtcli") script, to interact with the applications. Once an application is shut down or killed, you can restart it using following command:
launch pi-demo-3.4.0-incubating-SNAPSHOT.apa -originalAppId application_1465560538823_0074 -Ddt.attr.APPLICATION_NAME="Relaunched PiDemo" -exactMatch "PiDemo"
哪里
-Ddt.attr.APPLICATION_NAME
为重新启动的应用提供新名称
-Ddt.attr.APPLICATION_NAME
gives the new name for relaunched app
-exactMatch
用于指定确切的应用名称
-exactMatch
is used to specify the exact app name
请注意,-Ddt.attr.APPLICATION_NAME
& -exactMatch
是可选的.
Note that, -Ddt.attr.APPLICATION_NAME
& -exactMatch
are optional.
这篇关于如何重新启动Apache Apex应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!