rlq_nuode
这个数据库
项目名称:青岛诺德购物广场
集团:青岛利群集团
ip:47.103.61.198
端口号:3306
数据库名称:rlq_nuode
连接字符串:rlq_nuode
Sort:1
时序数据库API地址:http://47.102.145.164:6020/rest/sql
时序数据库用户名:root
时序数据库密码:taosdata
时序数据库名称:rlq_nuode_7_9
用户名:ddzt1
密码:888888
角色:DianGong
用户名:nuode
密码:888888
集团:青岛利群集团
项目:青岛诺德购物广场
角色:DianGong
14E38更换成14784
-- SceneItem select * from sceneitem where KaiGuanId in (‘1015’,‘1016’,‘1017’,‘1018’,‘1019’,‘1020’,‘1021’,‘1022’,‘1023’,‘1024’)
-- SceneDetails select * from scenedetails limit 1 select * from scenedetails where mac=‘187ed5314e38’
-- warninghistories select * from warninghistories where KaiGuanId in (‘1015’,‘1016’,‘1017’,‘1018’,‘1019’,‘1020’,‘1021’,‘1022’,‘1023’,‘1024’)
-- kaiguanwarning select * from kaiguanwarning where KaiGuanId in (‘1015’,‘1016’,‘1017’,‘1018’,‘1019’,‘1020’,‘1021’,‘1022’,‘1023’,‘1024’)
-- 删除 delete from scenedetails where mac=‘187ed5314e38’
delete from sceneitem where KaiGuanId in (‘1015’,‘1016’,‘1017’,‘1018’,‘1019’,‘1020’,‘1021’,‘1022’,‘1023’,‘1024’)
delete from warninghistories where KaiGuanId in (‘1015’,‘1016’,‘1017’,‘1018’,‘1019’,‘1020’,‘1021’,‘1022’,‘1023’,‘1024’)
delete from kaiguanwarning where KaiGuanId in (‘1015’,‘1016’,‘1017’,‘1018’,‘1019’,‘1020’,‘1021’,‘1022’,‘1023’,‘1024’)
delete from kaiguan where Mac=‘187ed5314e38’
- 添加新开关
select * from kaiguan where Mac=‘187ed5314c38’ sort=3
select * from kaiguan where Mac=‘187ed5314d98’ sort=1
187ed53147
sort=2
select * from kaiguan where Mac=‘187ed5314784’
- 可视化界面-1层F区,尝试是否可以分断合闸
- 添加到场景中
-- -1层F区9点关 -- -1层F区下班关 -- -1层F区上班开
# 14B84换成1EFAO
- 模块默认IP:192.168.91.1:82
- 服务器指向:`192.168.0.252:8080/ebx-bishop/data/carry`
- 其它
-- KaiGuan Mac:187ed5314b84 15个开关,编号1-15 Sort:3 1-5 梯东,6 廊灯,7 梯底,8和9 服务台,10 灯箱,11电视,12-15空
--场景 -1A区晚上21点关:线路10 -1层A区上班开:1-15 -1层A区下班关:1-15
-- SceneItem select * from sceneitem where KaiGuanId in (‘1’,‘2’,‘3’,‘4’,‘5’,‘6’,‘7’,‘8’,‘9’,‘10’,‘11’,‘12’,‘13’,‘14’,‘15’)
-- SceneDetails select * from scenedetails where mac=‘187ed5314b84’
-- warninghistories select * from warninghistories where KaiGuanId in (‘1’,‘2’,‘3’,‘4’,‘5’,‘6’,‘7’,‘8’,‘9’,‘10’,‘11’,‘12’,‘13’,‘14’,‘15’)
-- kaiguanwarning select * from kaiguanwarning where KaiGuanId in (‘1’,‘2’,‘3’,‘4’,‘5’,‘6’,‘7’,‘8’,‘9’,‘10’,‘11’,‘12’,‘13’,‘14’,‘15’)
-- 删除 delete from scenedetails where mac=‘187ed5314b84’
delete from sceneitem where KaiGuanId in (‘1’,‘2’,‘3’,‘4’,‘5’,‘6’,‘7’,‘8’,‘9’,‘10’,‘11’,‘12’,‘13’,‘14’,‘15’)
delete from warninghistories where KaiGuanId in (‘1’,‘2’,‘3’,‘4’,‘5’,‘6’,‘7’,‘8’,‘9’,‘10’,‘11’,‘12’,‘13’,‘14’,‘15’)
delete from kaiguanwarning where KaiGuanId in (‘1’,‘2’,‘3’,‘4’,‘5’,‘6’,‘7’,‘8’,‘9’,‘10’,‘11’,‘12’,‘13’,‘14’,‘15’)
delete from kaiguan where Mac=‘187ed5314b84’
--添加新开关 用户名:13800000000 密码:DrrnFwd2018 select Id, Mac, LineAddress, Name from kaiguan where Mac=‘187ed531efa0’ update kaiguan set Name=‘梯东’ where Mac=‘187ed531efa0’ and LineAddress in (‘1’,‘2’,‘3’,‘4’,‘5’) update kaiguan set Name=‘廊灯’ where Mac=‘187ed531efa0’ and LineAddress=‘6’ update kaiguan set Name=‘梯底’ where Mac=‘187ed531efa0’ and LineAddress=‘7’ update kaiguan set Name=‘服务台’ where Mac=‘187ed531efa0’ and LineAddress in (‘8’,‘9’) update kaiguan set Name=‘灯箱’ where Mac=‘187ed531efa0’ and LineAddress=‘10’ update kaiguan set Name=‘电视’ where Mac=‘187ed531efa0’ and LineAddress=‘11’ update kaiguan set Name=‘空’ where Mac=‘187ed531efa0’ and LineAddress in (‘12’,‘13’,‘14’,‘15’) 补Code
- 可视化界面-1层A区,尝试是否可以分断合闸
- 添加到场景中
--场景
-1A区晚上21点关:线路10 187ed531ef
-1层A区上班开:1-15
-1层A区下班关:1-15
- 14B84从缓存中删除
- 处理云端
192.168.0.252:8080//ebx-bishop/data/carry
--场景 -4层晚上19点关 21:27触发,4,5,6 -4层下班关 22:30 1,3,6 -4层货梯下班关 21:50 2,7
-- SceneItem select * from sceneitem where KaiGuanId in (‘870’,‘871’,‘872’,‘873’,‘874’,‘875’,‘876’)
-- SceneDetails select * from scenedetails where mac=‘187ed531571c’
-- warninghistories select * from warninghistories where KaiGuanId in (‘870’,‘871’,‘872’,‘873’,‘874’,‘875’,‘876’)
-- kaiguanwarning select * from kaiguanwarning where KaiGuanId in (‘870’,‘871’,‘872’,‘873’,‘874’,‘875’,‘876’)
-- 删除 delete from scenedetails where mac=‘187ed531571c’
delete from sceneitem where KaiGuanId in (‘870’,‘871’,‘872’,‘873’,‘874’,‘875’,‘876’)
delete from warninghistories where KaiGuanId in (‘870’,‘871’,‘872’,‘873’,‘874’,‘875’,‘876’)
delete from kaiguanwarning where KaiGuanId in (‘870’,‘871’,‘872’,‘873’,‘874’,‘875’,‘876’)
delete from kaiguan where Mac=‘187ed531571c’
-- 删除缓存中的模块
--添加新开关 用户名:13800000000 密码:DrrnFwd2018
-- 设置开关名称 -- 补Code
select Mac, LineAddress, Name, Code from kaiguan where Mac='187ed53226ac'
update kaiguan set Name='走廊吊灯',Code='1' where Mac='187ed53226ac' and LineAddress=1
update kaiguan set Name='电梯前室',Code='2' where Mac='187ed53226ac' and LineAddress=2
update kaiguan set Name='扶梯上反灯',Code='3' where Mac='187ed53226ac' and LineAddress=3
update kaiguan set Name='楼梯反光',Code='4' where Mac='187ed53226ac' and LineAddress=4
update kaiguan set Name='楼梯反光',Code='5' where Mac='187ed53226ac' and LineAddress=5
update kaiguan set Name='电视墙',Code='6' where Mac='187ed53226ac' and LineAddress=6
update kaiguan set Name='电梯走廊',Code='7' where Mac='187ed53226ac' and LineAddress=7
-- 设置场景
- 可视化界面4层A区,尝试是否可以分断合闸
- 添加到场景中
- 同步时序数据库
- 处理云端
处理器:intel 3.3GHZ 4核
内存:8GB
系统类型:64位
Windows版本:Windows Server 2012 R2 Standard
云端数据库:rlq_nuode
本地网址:192.168.0.252
groupid:7
projectid:9
connkey:rlq_nuode
时序数据库名称:rlq_nuode_7_9
-- 服务器支持的最大连接数,最大连接数,默认100,一般经验设置3000。win服务器连接数支持1500-1800。 show variables like ‘%max_connections%‘; set global max_connections=1000
-- 响应的最大连接数,检查曾经使用最大的连接数,这个值在max_connections的85%左右比较合适,过高,则会系统使用连接数过少,系统负荷过高。Max_used_connections / max_connections * 100%=44/151,最好是占85%以上。 show global status like ‘max_used_connections’
-- max_user_connections=0,表示不限制用户的最大连接数,其最大值可以等于max_connections show variables like ‘%max_user_connections’;
-- show status like ‘Threads%’; 参数说明: Threads_cached 34 ##mysql管理的线程池中还有多少可以被复用的资源 Threads_connected 32 ##打开的连接数 Threads_created 66 ##代表新创建的thread(根据官方文档,如果thread_created增大迅速,需要适当调高 thread_cache_size)。 Threads_running 2 ##激活的连接数,这个数值一般远低于connected数值,准确的来说,Threads_running是代表当前并发数
sql> show variables like ‘thread_cache_size’; sql> set global thread_cache_size=60;
select * from real_187ed5314b84 where ts >= NOW - 1h;
# 在局域网创建时序数据库表
- 超级表