摘要: 线性规划和对偶规划怎么确定符号? 1.max => min 约束和变量一一对应 约束<= ⇒ 变量>= 约束>= ⇒ 变量<= 约束 = ⇒ 变量无限制 变量<= ⇒ 约束<= 变量>= ⇒ 约束>= 变量无限制 ⇒ 约束=2.min => max 约束和变量一一对应 约束<= ⇒ 变量<= 约束> 阅读全文
posted @ 2022-11-07 17:05 代码吴彦祖 阅读(17) 评论(0) 推荐(0) 编辑
  2024年4月29日
摘要: 这个错误是因为开启了保护模式,导致出错。所以需要关闭redis的保护模式。 编辑redis的redis.config 注释 bind 127.0.0.1 、修改protected-mode 为 no、修改 daemonize 为 no 然后重启redis 阅读全文
posted @ 2024-04-29 13:55 代码吴彦祖 阅读(12) 评论(0) 推荐(0) 编辑
  2024年3月13日
摘要: 1.定义切面类 2.编写切面类 import com.alibaba.fastjson.JSON; import com.fasterxml.jackson.databind.ObjectMapper; import com.xlkh.bigscreen.common.utils.RedisDevi 阅读全文
posted @ 2024-03-13 14:18 代码吴彦祖 阅读(9) 评论(0) 推荐(0) 编辑
  2024年3月12日
摘要: ES语句 GET /event_log_hulianwang_v3/_search { "size": 0, "query": { "bool": { "must": [ { "term": { "event_type.keyword": "终端事件" } }, { "range": { "even 阅读全文
posted @ 2024-03-12 17:42 代码吴彦祖 阅读(10) 评论(0) 推荐(0) 编辑
  2024年2月26日
摘要: 1.在服务器执行:crontab -e 命令 2.在出现的界面编写cron表达式 3.编写guard_java_extbork.sh脚本 #!/bin/bash source /etc/profile ps -ef|grep jar包名称 |grep -v grep if [ $? -ne 0 ] 阅读全文
posted @ 2024-02-26 17:22 代码吴彦祖 阅读(25) 评论(0) 推荐(0) 编辑
  2024年1月8日
摘要: public static void main(String[] args) { String filePath = "E:\\codes\\work\\product-parent\\logs\\alarm_log_info.log"; try { RandomAccessFile randomA 阅读全文
posted @ 2024-01-08 14:39 代码吴彦祖 阅读(22) 评论(0) 推荐(0) 编辑
  2023年12月19日
摘要: [ { "label": "北京市", "value": "北京市", "children": [ { "label": "东城区", "code": "110101", "value": "东城区" }, { "label": "西城区", "code": "110102", "valu 阅读全文
posted @ 2023-12-19 17:49 代码吴彦祖 阅读(24) 评论(0) 推荐(0) 编辑
  2023年12月18日
摘要: springboot的yml配置文件添加如下配置: spring: # 数据库连接相关配置 datasource: druid: filters: stat,wall stat-view-servlet: enabled: true login-username: admin login-passw 阅读全文
posted @ 2023-12-18 14:51 代码吴彦祖 阅读(21) 评论(0) 推荐(0) 编辑
  2023年11月30日
摘要: 1.使用ipconfig获取自己电脑ip,在服务器使用:curl ip:1234 命令查看是否通,不通的话可能要关闭防火墙 2.在服务器的Prometheus安装目录: 编辑:prometheus.yml文件 这里配置你的电脑ip,保存,使用:ps -ef|grep prometheus,杀掉当前P 阅读全文
posted @ 2023-11-30 09:57 代码吴彦祖 阅读(28) 评论(0) 推荐(0) 编辑
  2023年11月29日
摘要: 1.mysql的数据 2.java代码 建立指标Collector类,指标类必须继承Collector import cn.hutool.extra.spring.SpringUtil; import com.xlkh.prometheus.pojo.device.DeviceMonitorMetr 阅读全文
posted @ 2023-11-29 14:41 代码吴彦祖 阅读(39) 评论(0) 推荐(0) 编辑
  2023年11月23日
摘要: package com.xlkh.kafka; import cn.hutool.core.collection.CollectionUtil; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; impo 阅读全文
posted @ 2023-11-23 14:51 代码吴彦祖 阅读(144) 评论(0) 推荐(0) 编辑
  2023年9月20日
摘要: 1.pom依赖 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <depend 阅读全文
posted @ 2023-09-20 09:43 代码吴彦祖 阅读(401) 评论(0) 推荐(0) 编辑
  2023年8月17日
摘要: 1.windows下操作iotdb,现在官网下载相关的iotdb包 官网地址:https://archive.apache.org/dist/iotdb/ 一般建议下载 -all的 2.打开dbeaver配置iotdb的驱动 之后在新连接的地方就能找到刚刚配置的iotdb了 3.进行连接iotdb 阅读全文
posted @ 2023-08-17 15:55 代码吴彦祖 阅读(870) 评论(0) 推荐(0) 编辑
  2023年8月10日
摘要: package com.xlkh.bigscreen.common.aspect; import com.alibaba.fastjson.JSON; import com.fasterxml.jackson.databind.ObjectMapper; import com.xlkh.bigscr 阅读全文
posted @ 2023-08-10 15:25 代码吴彦祖 阅读(240) 评论(0) 推荐(0) 编辑
  2023年5月30日
摘要: 1.后端: 2.前端: 阅读全文
posted @ 2023-05-30 17:30 代码吴彦祖 阅读(207) 评论(0) 推荐(0) 编辑
  2023年5月18日
摘要: 1.定义一个controller,里面写个测试方法,用于postman测试 1 @GetMapping("/toTestThread") 2 public void demosendThread() { 3 4 try { 5 startTime = System.currentTimeMillis 阅读全文
posted @ 2023-05-18 14:19 代码吴彦祖 阅读(338) 评论(0) 推荐(0) 编辑