简体   繁体   English

启动JBOSS AS时如何查找是否正在运行/启动特定服务?

[英]How to find if a particular service is run/started when JBOSS AS is started?

Beginner here! 初学者在这里! I have two questions. 我有两个问题。

Background: 背景:

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 . 我已经通过下载.zip文件并解压缩来安装程序(按照其安装说明),然后通过执行ant deploy According to the installation instructions, this deploys my program as a JBOSS AS Service. 根据安装说明,这会将我的程序部署为JBOSS AS服务。

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. 根据已部署程序的用户手册,启动JBoss Application Server将运行该服务。 But the user manual instructs to run a script named run.sh in <jboss-install-directory>/bin folder. 但是,用户手册指示在<jboss-install-directory>/bin文件夹中运行名为run.sh的脚本。 But there is no script named run.sh in my <jboss-install-directory>/bin folder. 但是在我的<jboss-install-directory>/bin文件夹中没有名为run.sh脚本。 So I started the JBoss AS using the usual ./standalone.sh . 因此,我使用通常的./standalone.sh启动了JBoss AS。

Question 1: 问题1:

What is meant by a JBoss AS SERVICE? JBoss AS服务是什么意思?

Question 2: 问题2:

How can I find a list of all services started/run when JBoss AS is started? 启动JBoss AS时,如何找到所有已启动/正在运行的服务的列表? So that I can confirm that my service has been started. 这样我可以确认我的服务已经启动。

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 AS”服务时,我想我们在谈论7.x版中的JBoss,因为更高的版本被命名为Wildfly(社区版)或JBoss EAP(企业版)。

The JBoss documentation explains the two different deployment modes: automatic or manual. JBoss 文档解释了两种不同的部署模式:自动或手动。 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. 如果未在配置文件standalone.xml中进行任何更改(正在启动此配置),则自动模式可能处于活动状态。 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自动部署您的应用程序(您将其称为“服务”),并通过标记文件指示状态(有关更多详细信息,请参见此处 )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM