A management system has been made for the internal organization, and the deployment project requires the server to start the management system self-booting. The operation flow is given directly.
I. Configuring Environment variables
Since Tomcat starts dependent on the JDK, the JDK and tomcat two environment variables need to be configured, such as if the system has a JDK installed, there is no need to re-configure the JDK environment variable here.
1 JDK environment variable configuration
Create a new variable java_home under the user variable in the environment variable, where the value of the variable is the JDK root, and the path variable edit is found in the system variable, if it exists before the path variable, with a half-width semicolon (;) at the end, plus %java_home %\bin, note that the preceding semicolon must not be saved.
2 Tomcat environment variable configuration
Create a new variable catalina_home under the user variable in the environment variable, where the value of the variable is the tomcat root that you want to boot from, and the path variable in the system variable, and the same way you add a semi- Colon after the end of the %catalina_nome%\ Bin, click OK to save.
Ii. adding Tomcat system services
CMD enters the command-line window, enters the Tomcat bin directory, executes the service.bat install command to complete the service Add.
Third, set up the Tomcat service boot from boot
Click Start--->> Control Panel--->> Administrative Tools--->> services, locate the added Tomcat service, set the startup type to Automatic, save exit.
By the end of this Tomcat service configuration, restarting the computer can be tested and accessed if the project is deployed under the Tomcat directory where the self-service is configured.
According to the degree Niang configuration is not easy to know simple, make a note.
Configuring the boot from Tomcat service under Windows