解压Tomcat压缩包
tar -zxvf apache-tomcat-8.5.47.tar.gz
启动Tomcat
进入Tomcat的bin目录,启动Tomcat
进入Tomcat的bin目录,启动Tomcat
cd apache-tomcat-8.5.47/bin/
启动Tomcat
./startup.sh
查看Tomcat是否启动成功
查看Tomcat是否启动成功执行
ps -ef | grep tomcat
如果输出如下,说明Tomcat安装成功
root 2381 1 11 22:18 pts/0 00:00:02 /usr/local/jdk1.8.0_152/bin/java -Djava.util.logging.config.file=/usr/local/tomcat/apache-tomcat-8.5.47/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dignore.endorsed.dirs= -classpath /usr/local/tomcat/apac