First, Installation:
① download a good tomcat tar.gz file
② Create a folder in #cd/var/ftp/pub ProgramFiles
③ Extract folder #tar-xzvf tomcat**.tar.gz file gets tomcat**
④ move the file #mv tomcat**/usr/
⑤ Modifying the file name #MV tomcat** Tomcat
⑥ turn on Tomcat: Open the #cd/tomcat/bin directory First, then #./startup.sh
⑦ See if the service is turned on: method One: View process #ps-ef | grep Tomcat
Method Two: #wget http://localhost:8080
Method Three: Remote window browser input http://{your Linux ip}:8080 to see if you can enter Tomcat.
⑧ off Tomcat: Generally do not use Tomcat's. Sh to close, we are directly killed process: #kill {Process id} (here the process ID can be used #ps-ef |grep tomcat view)
Second, configure the boot of the Tomcat CentOS:
Open #vi/etc/rc.local
Add code at the end of the file:
#这里是你的jdk的安装目录和tomcat的安装目录
Java_home=/usr/java/jdk1.8.0_111/export java_home/usr/tomcat/bin/startup.sh
CentOS Tomcat installation and self-booting