安装java17
安装tomcat
- 更新源
sudo apt update
- 在apt中搜索tomcat
sudo apt search tomcat
- 安装tomcat10和tomcat10-admin
sudo apt install tomcat9 tomcat9-admin
- 启动tomcat
sudo systemctl start tomcat10
- 查看tomcat是否启动成功
http://url:8080/
- 设置开机启动
sudo systemctl enable tomcat10
webapps路径:/var/lib/tomcat10/webapps/ROOT/index.html
If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!
This is the default Tomcat home page. It can be found on the local filesystem at: /var/lib/tomcat10/webapps/ROOT/index.html
Tomcat veterans might be pleased to learn that this system instance of Tomcat is installed wi