Knowledge Base >> How to Setup "Ignite for Java Setup Wizard" as a Windows Service
How to Setup "Ignite for Java Setup Wizard" as a Windows Service - Confio Article 1537
Follow these steps to set up "Ignite for Java Setup Wizard" as a Windows Service:
- Edit the file <Ignite Home>/tomcat/bin/service.bat
Replace these two lines:
set SERVICE_NAME=Tomcat5
set PR_DISPLAYNAME=Apache Tomcat
With these lines:
set SERVICE_NAME=IgniteI4J
set PR_DISPLAYNAME=Ignite I4J
- Open a Windows command prompt.
- Set the JAVA_HOME environment variable to your Java Development Kit installation.
- Add JAVA_HOME/bin to your PATH environment variable.
- Make sure an environment variable CATALINA_HOME does not exist. If one exists, remove it:
set CATALINA_HOME=
- Change directory to the <Ignite Home>/tomcat/bin directory.
- Run the service.bat with the parameter "install":
service install
- Since a windows service has its working directory at c:\windows\system32 you will need to copy the four directories shown below to c:\ :
copy <Ignite Home>/conf to c:\
copy <Ignite Home>/data to c:\
copy <Ignite Home>/instrument to c:\
copy <Ignite Home>/logs to c:\
- Open your Windows Services screen and look for the service "Ignite I4J". If you don't see it, try refreshing the screen.
- Start the service.
- If you want to have the service start when Windows starts, change the service's Startup Type to "Automatic". You can do this by right-clicking on the service, clicking on Properties, changing the Startup Type, and pressing OK.
- Bring up the link (http://<Machine Name>:8081 or http://<Machine IP>:8081) in your browser.
To remove the service:
- Open a Windows command prompt.
- Change directory to <Ignite Home>/tomcat/bin
- Run the following command:
service remove
|