Linux boot tomcat automatically runs

tomcat starts automatically. Modify /etc/rc.local. Since there is no user login, the JAVA_HOME environment variable does not work, and the java environment variable needs to be reset .

    JAVA_HOME =/usr/java/ jdk1.7.0_45 

    export JAVA_HOME

    /usr/tomcat7/bin/startup.sh

 

    ps –ef  | grep tomcat to check whether the tomcat thread is started and the running result is shown in the figure  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326524195&siteId=291194637
Recommended