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