Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f04d606b
authored
Jan 23, 2024
by
罗志长
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
doc
parent
d5b480ec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
doc/deploy.md
doc/deploy.md
View file @
f04d606b
# 平台端
# 平台端
## 服务器环境准备
## 服务器环境准备
-
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 &
```
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment