Files
hcframe-doc/docs/03.后台/01.概要/03.如何设置以及启动项目.md
2021-02-07 15:41:10 +08:00

54 lines
630 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 如何设置以及启动项目
date: 2021-02-03 09:26:32
permalink: /pages/de6b74/
---
# 如何设置以及启动项目
## 启动
```bash
# 通过启动类运行
```
## 打包
```bash
mvn clean package
```
## war包部署
```bash
# 放入服务器如tomcat等后启动服务器
```
## jar包部署
```bash
# 将jar包上传服务器后执行
nohup java -jar common.jar > common.txt &
```
## 停止服务(服务器版本)
```bash
# 此处用tomcat服务器举例
cd tomcat
./bin/shutdown.sh
```
## 停止服务jar包版本
```bash
# 查看java进程
jps -l
# 结束进程
kill -9 {pid}
```