摘要: 1》 证书生成 1.创建私钥:openssl genrsa -des3 -out https.key 1024 2.去除私钥中的密码:openssl rsa -in https.key -out https.key 3.创建签名请求证书:openssl req -new -key https.key 阅读全文
posted @ 2022-04-29 10:40 Mr.Liu08 阅读(1653) 评论(0) 推荐(0) 编辑
摘要: 防火墙操作常用指令: 1> iptables service iptables status // 查看防火墙状态 iptables -L -n // 使用命令查看端口开启情况 iptables -F // 清除预设表filter中的所有规则链的规则 iptables -X // 清除预设表filt 阅读全文
posted @ 2022-04-29 10:38 Mr.Liu08 阅读(154) 评论(0) 推荐(0) 编辑
摘要: insert into aaa (id, agent_id, mname)values ('asd','aaa','asdasd5'),('ddd','aaa1','asdasd4')on conflict (id) do update set mname =excluded .mname ; 阅读全文
posted @ 2022-03-27 10:51 Mr.Liu08 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 常见的SSL证书文件后缀扩展名说明: ①*.DER或*.CER文件: 带有这类后缀扩展名的SSL证书文件是二进制格式,只含有SSL证书信息,不包含私钥。 ②*.CRT文件: 这样的证书文件可以是二进制格式,也可以是文本格式,一般均为文本格式,功能与 *.DER及*.CER证书文件相同。 ③*.PEM 阅读全文
posted @ 2022-01-07 20:42 Mr.Liu08 阅读(626) 评论(0) 推荐(0) 编辑
摘要: 修改 max.message.bytes: bin/kafka-configs.sh --zookeeper localhost:2181 --alter --entity-type topics --entity-name asset-scan-machine-result --add-confi 阅读全文
posted @ 2021-08-05 15:27 Mr.Liu08 阅读(526) 评论(0) 推荐(0) 编辑
摘要: 无意发现一个dateformat的问题 DateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss"); Date eventDate = dateFormat.parse("2021-01-22 12:34:22"); System.o 阅读全文
posted @ 2021-01-21 11:56 Mr.Liu08 阅读(212) 评论(0) 推荐(0) 编辑
摘要: when 无法进行null 判断,可以在case中使用 is null 进行true false判断代替 SELECT s.id, CASE tmp.id IS NULL WHEN TRUE THEN s.shopname ELSE CONCAT('[aaa]', s.shopname) END A 阅读全文
posted @ 2020-12-20 15:19 Mr.Liu08 阅读(712) 评论(0) 推荐(0) 编辑
摘要: 1.pip安装 $ pip install [安装包名] [...] Successfully installed SomePackage #安装成功 2.pip查看是否已安装插件 $ pip show --files [插件名] Name:SomePackage # 包名 Version:1.0 阅读全文
posted @ 2020-11-13 15:20 Mr.Liu08 阅读(85) 评论(0) 推荐(0) 编辑
摘要: package io; import static org.apache.commons.compress.archivers.zip.ZipArchiveEntry.PLATFORM_UNIX; import java.io.File; import java.io.FileInputStream 阅读全文
posted @ 2020-11-04 14:28 Mr.Liu08 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1.关闭图形界面: /usr/dt/bin/dtconfig -d 2.网络配置 : /etc/hosts 添加 ip 和 node名称映射 :192.168.38.190 node80 /etc/netmasks 添加子网信息 : 192.168.38.1 255.255.255.0 /etc/d 阅读全文
posted @ 2020-05-15 17:38 Mr.Liu08 阅读(148) 评论(0) 推荐(0) 编辑