JBoss 7 is configured as a windows Startup service,

Source: Internet
Author: User
Tags windows x64 windows x86 jboss server

JBoss 7 is configured as a windows Startup service,

Configure the Jboss7 server as two windows startup service files. The deployment steps are as follows:

1. Check whether the java_home and jboss_home environment variables are configured first, if not configured on the first configuration, such as my JBOSS_HOME = D: \ jboss-as-7.1.1.Final.

2. Copy the jbosssvc.exe and service. bat files in the attachment to the % JBOSS_HOME % \ bin directory, such as my D: \ jboss-as-7.1.1.Final \ bin.

3. Start-> Run-> input "cmd", enter the command line, adjust the directory to % JBOSS_HOME % \ bin, such as "cd D: \ jboss-as-7.1.1.Final \ bin"

4. Enter "service. bat install" in the command line to install the service. The prompt "Service JBoss7 installed" indicates that the installation is successful. You can enter services. msc in "start"> "run"> "services. msc" to go to the service list and view the service named Jboss7. Right-click Jboss7 service> Properties> General tab> enable type to auto. Since then, jboss7 is automatically started every time you restart your computer.

5. Use the command "service. bat uninstall" to log out of the jboss service ".

6. Download binaries 2.0.10-windows x86 from http://www.jboss.org/jbossweb/downloads/jboss-native-2-0-10.html. Configure jbossas service.zip

Modify the startup content of service. bat as follows:

A. Modify the service name, display name, and description in line 21-23.

Set SVCNAME = JBoss7server

Set SVCDISP = JBoss7

Set SVCDESC = JBoss AS 7.1.1.Final-Windows x86

B. comment out row 27th and add REM before set JAVA_OPTS =-Xrs. The reason why this row is changed to REM set JAVA_OPTS =-Xrx comment set JAVA_OPTS =-Xrs is, the role of adding this line was to prevent the jboss server from being stopped when the computer user logs out. Comment out now means that the jboss will be stopped when the user logs out.

C. Replace the full textRun. batIsStandalone. bat,Run. logIsStandalone. log. This is to redirect to the standalone mode where the jboss server is manually started.

7. 64-bit servers need to download 64-bit jbosssvc.exe, as shown below: http://www.jboss.org/jbossweb/downloads/jboss-native-2-0-10.html, and download binaries 2.0.10-windows x64.




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.