如何在 JBOSS AS 启动时查找特定服务是否正在运行/启动? [英] How to find if a particular service is run/started when JBOSS AS is started?

查看:23
本文介绍了如何在 JBOSS AS 启动时查找特定服务是否正在运行/启动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里是初学者!我有两个问题.

Beginner here! I have two questions.

背景:

我通过下载 .zip 文件然后解压它来安装程序(按照他们的安装说明),然后通过执行 ant deploy 部署它.根据安装说明,这会将我的程序部署为 JBOSS AS 服务.

I have installed a program (following their installation instructions) by downloading a .zip file and then unzipping it, and then deploying it by executing ant deploy. According to the installation instructions, this deploys my program as a JBOSS AS Service.

现在我想运行该服务.根据部署程序的用户手册,启动JBoss应用服务器将运行服务.但是用户手册指示在 /bin 文件夹中运行名为 run.sh 的脚本.但是在我的 /bin 文件夹中没有名为 run.sh 的脚本.所以我使用通常的 ./standalone.sh.

Now I want to run the service. According to the user manual of the deployed program, starting the JBoss Application Server will run the service. But the user manual instructs to run a script named run.sh in <jboss-install-directory>/bin folder. But there is no script named run.sh in my <jboss-install-directory>/bin folder. So I started the JBoss AS using the usual ./standalone.sh.

问题 1:

JBoss AS SERVICE 是什么意思?

What is meant by a JBoss AS SERVICE?

问题 2:

如何在 JBoss AS 启动时找到所有已启动/运行的服务的列表?以便我确认我的服务已经启动.

How can I find a list of all services started/run when JBoss AS is started? So that I can confirm that my service has been started.

推荐答案

当你说JBoss AS"服务时,我猜我们在谈论 7.x 版本的 JBoss,因为以后的版本要么被命名为 Wildfly(社区版)) 或 JBoss EAP(企业版).

When you say "JBoss AS" service, I guess that we are talking about JBoss in version 7.x, because later versions are either named Wildfly (community edition) or JBoss EAP (enterprise edition).

JBoss 文档 解释了两种不同的部署模式:自动或手册.如果您没有更改配置文件 standalone.xml 中的任何内容(因为您正在启动此配置),那么自动模式可能处于活动状态.在这种情况下,JBoss AS 会自动部署您的应用程序(您将其命名为服务")并通过标记文件指示状态(有关更多详细信息,请参阅 此处).

The JBoss documentation explains the two different deployment modes: automatic or manual. If you did not change anything in the configuration file standalone.xml (as your are starting this configuration), then the automatic mode may be active. In this case JBoss AS deploys your application (which you name "service") automatically and indicates the status by a marker file (for more details see here).

这篇关于如何在 JBOSS AS 启动时查找特定服务是否正在运行/启动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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