安装Tomcat前需要先安装JDK:
java -version
如果没有安装,请参考链接:
https://yq.aliyun.com/articles/653373?spm=a2c4e.11155435.0.0.c92b3312NrGMmg
解压文件apache-tomcat-8.0.53.tar.gz
tar -zxvf ./apache-tomcat-8.0.53.tar.gz
解压过的压缩包记得删掉,会占用服务器磁盘空间
rm -rf ./apache-tomcat-8.0.53.tar.gz
进入bin目录
cd /usr/local/apache-tomcat-8.0.53/bin
启动tomcat服务:sh ./startup.sh
浏览器访问:http://192.168.43.61:8080/
停止tomcat服务:sh ./shutdown.sh
结束