Commit f04d606b by 罗志长

doc

parent d5b480ec
Showing with 13 additions and 3 deletions
# 平台端
## 服务器环境准备
- JDK(版本号1.8.0_202)
- Redis
- MySql 初始化脚本db/init/init.sql
- JDK 1.8.0_2xx (需要小版本号大于200)
- Redis 5.x
- MySql 5.7+ (初始化脚本db/init/init.sql)
- ElasticSearch 6.8.11
- Kibana 6.8.11 (可选)
## 项目打包
- 拉取源码http://git.xmmakeit.com/huangjiay/iot-platform-server.git
- 切换分支(master生产环境,dev测试环境)
- 在项目根目录下执行mvn clean package进行打包
## 部署
- 在服务器上创建目录/opt/iot-platform-server
- 将jar包上传至服务器/opt/iot-platform-server目录下
- 正式环境在/opt/iot-platform-server/config目录下新建application.yaml文件,请注意修改对应配置信息!!!
- application.yaml
```yaml
server:
port: 10005
......@@ -159,11 +166,14 @@
```
- 启动项目
- 测试环境
```sh
nohup java -jar server-web.jar --spring.profiles.active=test &
```
- 正式环境
```sh
nohup java -jar server-web.jar &
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment