How do I start Tomcat service automatically in Linux?

How do I start Tomcat service automatically in Linux?
Answer
Create Tomcat Auto startup script:
  1. login with root user.
  2. create a file name with tomcat in /etc/init.d. …
  3. if you set the JAVA_HOME and CATALINA_HOME is bash_profile then you no need to set in /etc/init.d/tomcat script.
  4. tomcat script is: …
  5. chmod 775 tomcat.
  6. create symbolic link of the tomcat script in rc.d directory.
 

Tìm kiếm

Back
Top