Installing JBoss into Windows System services under Windows Server R2

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

The JBoss version is jboss-4.2.3.ga-jdk6.zip and the operating system is Windows Server R2.

1. The system has installed a good JAVA environment, Java_home has been configured;

2. Download the required files. Download from http://www.jboss.org/jbossweb/downloads/jboss-native-2-0-10.html.

3. Download the file from the previous step, unzip it, and copy all the files under the Bin folder to the Bin folder of the JBoss root directory.

and modify the boot content of Service.bat, the content is as follows:

A. Paragraphs 21–23 line modify the service name, display name, description content

Set Svcname=jboss7server

Set SVCDISP=JBOSS7

Set Svcdesc=jboss as 7.1.1.final-windows x86

B. The 27th line is commented out, with REM in front of set JAVA_OPTS=-XRS, and the reason for the line to REM set JAVA_OPTS=-XRX Comment set JAVA_OPTS=-XRS is that The purpose of adding this line is to prevent the computer machine user log off when the JBoss server stopped, now commented out refers to the user log off when JBoss stopped.

4. Start-〉 run-〉 input "cmd", go to the command line, adjust the directory to%jboss_home%\bin, such as "CD D:\jboss-as-7.1.1.Final\bin"

5. On the command line, enter "Service.bat install" to install the service. Tip "Service JBOSS7 installed" indicates that the installation was successful. You can start-〉 run-〉 input services.msc, go to the list of services, and view the service name is JBOSS7. Right-JBOSS7 Service-〉 Properties-〉 General tab-〉 Startup type is changed to Automatic. Since then, each time the computer is restarted, the JBOSS7 service automatically starts with the machine.

6. To unregister the JBoss service as above, use the command "Service.bat Uninstall".

The difference between my practice and the reference article is as follows, and it may be related to my version environment:

A. I did not go to set jboss_home;

B. I did not replace the Run.bat, because instead of replacing the error.

"C. Replace the full text with Run.bat for standalone.bat,run.log for standalone.log. This substitution is intended to redirect the standalone mode to manually start the JBoss server. "

Reference article:

Reference Http://www.tuicool.com/articles/jY73ue

OriginalHttp://www.cnblogs.com/pancz/p/4062015.html

Installing JBoss into Windows System services under Windows Server R2

Related Article

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.