Tomcat安装
一、安装
1、安装包下载
https://archive.apache.org/dist/tomcat/tomcat-10/v10.0.6/bin/
2、将apache-tomcat-10.0.6.tar.gz上传至/opt/soft
mkdir -p /opt/soft
mkdir -p /opt/module
3、解压
tar -zxvf /opt/soft/apache-tomcat-10.0.6.tar.gz -C /opt/module
4、启动Tomcat
cd /opt/module/apache-tomcat-10.0.6 && bin/startup.sh
5、查看启动日志
cd /opt/module/apache-tomcat-10.0.6/logs
tail -f catalina.2023-04-10.log
6、测试是否启动成功
netstat -nltup |grep 8080
7、访问Web
http://192.168.66.101:8080 curl http://192.168.66.101:8080