JBOSS - EAP 6.x Windows new service
Configure JBoss EAP 6 as a Service in Windows
- Create system environment variables
Create two system environment variables:- JBOSS_HOME pointing to the JBoss EAP 6 installation directory.
- NOPAUSE=1
- Open a terminal, and change directories to EAP_HOME\modules\system\layers\base\native\sbin
A new service can be created with the service install command, with the available options shown in the following table.
service install optionsArgument or Switch/controller HOST:PORT/host [DOMAIN_HOST]/loglevel LEVEL/name SERVICE_NAME/desc "DESCRIPTION"/serviceuser DOMAIN\USERNAME/servicepass PASSWORD/jbossuser USERNAME/jbosspass PASSWORD
Below are basic examples of an install command to create a new service in either standalone or domain mode. - Standalone mode:
service.bat install /loglevel INFO - Domain mode:
If you are not using the default master for your JBoss EAP 6 domain controller, replace master with the correct host name or alias of the JBoss EAP 6 domain controller.
service.bat install /controller host:port /host{master /loglevel INFO - Verify the new service in the Services console
If the default service name was used, in the list of Windows services, the new service will have the display name: JBoss Enterprise Application Platform 6. From the Services console you can start and stop the service, as well change its settings on how and when it starts.
0 Comments:
댓글 쓰기