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.