diff --git a/das/src/main/java/com/das/modules/node/service/impl/NodeMessageServiceImpl.java b/das/src/main/java/com/das/modules/node/service/impl/NodeMessageServiceImpl.java index 027c16d0..3192ac98 100644 --- a/das/src/main/java/com/das/modules/node/service/impl/NodeMessageServiceImpl.java +++ b/das/src/main/java/com/das/modules/node/service/impl/NodeMessageServiceImpl.java @@ -258,7 +258,6 @@ public class NodeMessageServiceImpl extends TextWebSocketHandler implements Node String key = String.format("RT:%s:%s", deviceId, fieldName.toLowerCase()); keyValueMap.put(key, values.get(fieldName)); } - log.info("values解析成功"); } if (archiveValues != null){ @@ -274,7 +273,6 @@ public class NodeMessageServiceImpl extends TextWebSocketHandler implements Node lowSpeedValueMap.put(fieldName, archiveValues.get(fieldName)); } } - log.info("archive解析成功"); } //更新td if (!highSpeedValueMap.isEmpty()) { diff --git a/docs/deploy/asserts/image-4.png b/docs/deploy/asserts/image-4.png new file mode 100644 index 00000000..b9fa038a Binary files /dev/null and b/docs/deploy/asserts/image-4.png differ diff --git a/docs/deploy/das.md b/docs/deploy/das.md index 51469e3b..e545cb0a 100644 --- a/docs/deploy/das.md +++ b/docs/deploy/das.md @@ -462,8 +462,62 @@ systemctl enable das ```shell mkdir -p /das/app cd /das/app -wget https://oss.jsspisoft.com/ +wget https://oss.jsspisoft.com/public/software/das/das-dn.tar.gz +tar zxvf das-dn.tar.gz +rm -f das-dn.tar.gz ``` +### 程序配置 +编辑文件`/das/app/das-dn/envfile` +```toml +#das服务地址 +ISS_WS_HOST=127.0.0.1 +#das服务端口 +ISS_WS_PORT=8080 +#节点ID +ISS_WS_NODEID=1 +``` + +### 配置服务 + +创建服务文件`/etc/systemd/system/das-dn.service`,内容如下: + +```toml +[Unit] +Description=DAS DN Service +After=network.target + +[Service] +Type=simple +EnvironmentFile=/das/app/das-dn/envfile +ExecStart=/das/app/das-dn/bin/application -d ./rtufiles -h $ISS_WS_HOST -p $ISS_WS_PORT -n $ISS_WS_NODEID +Restart=always +RestartSec=10 +StartLimitInterval=0 +WorkingDirectory=/das/app/das-dn + +[Install] +WantedBy=multi-user.target +``` + +### 服务启动 + +```bash +systemctl start das-dn +systemctl enable das-dn +``` + +## 前端UI部署 + +前端只需要部署静态文件就行了 + +```shell +mkdir -p /das/app +wget https://oss.jsspisoft.com/public/software/das/ui.tar.gz +tar zxvf ui.tar.gz +rm -f ui.tar.gz +``` + +这样就部署好了。 \ No newline at end of file