type
Post
status
Published
date
Jan 9, 2025
slug
Linux部署SSM项目
summary
Linux部署SSM项目
tags
Linux
category
技术分享
icon
password

Linux部署SSM项目

打包项目

1、修改pom.xml文件,打包方式改为war
notion image
2、idea 通过maven的clean,先清理项目,再打包项目package
notion image
notion image

准备jdk环境和tomcat环境

1、JDK安装
2、tomcat安装

上传war包到tomcat

把文件上传到tomcat的webapps目录下面
notion image

运行项目

在tomcat的bin目录下,执行运行tomcat的脚本
notion image
运行成功就能正常访问到tomcat主页面,以及项目的页面
notion image