JAR部署方案 ##正式环境部署 > 通过spingboot内置tomcat,通过JAR方式启动服务 ###一、后台项目jeewx-boot打jar包 > 目前 jeewx-boot-module-system 作为启动和打包项目。 1、修改数据库连接 application.yml 2、修改缓存redis配置 application.yml 3. 修改项目域名 jeewx.properties 4、修改pom.xml加上打包插件(如果已经有了,就不需要加了) ``` <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <executions> <execution> <goals><goal>repackage</goal></goals> </execution> </executions> </plugin> </plugins> </build> ``` 然后 maven package 打jar包 ###二、后台项目jeecg-boot启动 通过命令启动项目 ``` Window启动命令: java -jar D:\jeewx-boot-module-system-1.0.3.jar Linux下后台进程启动命令: nohup java -jar jeewx-boot-module-system-1.0.3.jar >catalina.out 2>&1 & 关掉项目: ps -ef|grep java kill 进程号 ``` ###三、登录系统 http://localhost/jeewx 登录账号/密码 admin/123456