Commit f04d606b by 罗志长

doc

parent d5b480ec
Showing with 13 additions and 3 deletions
# 平台端 # 平台端
## 服务器环境准备 ## 服务器环境准备
- JDK(版本号1.8.0_202)
- Redis - JDK 1.8.0_2xx (需要小版本号大于200)
- MySql 初始化脚本db/init/init.sql - 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 - 拉取源码http://git.xmmakeit.com/huangjiay/iot-platform-server.git
- 切换分支(master生产环境,dev测试环境) - 切换分支(master生产环境,dev测试环境)
- 在项目根目录下执行mvn clean package进行打包 - 在项目根目录下执行mvn clean package进行打包
## 部署 ## 部署
- 在服务器上创建目录/opt/iot-platform-server - 在服务器上创建目录/opt/iot-platform-server
- 将jar包上传至服务器/opt/iot-platform-server目录下 - 将jar包上传至服务器/opt/iot-platform-server目录下
- 正式环境在/opt/iot-platform-server/config目录下新建application.yaml文件,请注意修改对应配置信息!!! - 正式环境在/opt/iot-platform-server/config目录下新建application.yaml文件,请注意修改对应配置信息!!!
- application.yaml - application.yaml
```yaml ```yaml
server: server:
port: 10005 port: 10005
...@@ -159,11 +166,14 @@ ...@@ -159,11 +166,14 @@
``` ```
- 启动项目 - 启动项目
- 测试环境 - 测试环境
```sh ```sh
nohup java -jar server-web.jar --spring.profiles.active=test & nohup java -jar server-web.jar --spring.profiles.active=test &
``` ```
- 正式环境 - 正式环境
```sh ```sh
nohup java -jar server-web.jar & 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