上一页 1 2 3 4 5 6 7 ··· 10 下一页
  2023年7月6日
摘要: ### 使用的python包 ```shell pip install confluent-kafka ``` ### 创建topic && 扩充partition ```python #!/usr/bin/env python # -*- coding:utf-8 -*- # @Time:2023 阅读全文
posted @ 2023-07-06 14:29 JentZhang 阅读(1031) 评论(0) 推荐(0) 编辑
  2023年6月30日
摘要: ### 介绍 > 1. 本次部署kafka3.5版本,彻底告别zookeeper时代,部署更加轻量,运维更加简单 > 2. 同时使用比较好用的kafka控制台redpandadata ### docker swam 集群搭建 - 详见我的另一篇博客 [Docker Swarm集群搭建](https: 阅读全文
posted @ 2023-06-30 18:43 JentZhang 阅读(1880) 评论(0) 推荐(0) 编辑
  2023年5月24日
摘要: ### 场景描述 1. 服务器A(172.25.114.1)目录/data下有一个文件swarmprom-master.tgz 2. 现在需要将这个文件同步到服务器B(172.25.114.2)下面的/tmp目录下。 ### 1. 在服务器A的目录/data下面执行命令 - python2 ```p 阅读全文
posted @ 2023-05-24 15:34 JentZhang 阅读(131) 评论(0) 推荐(0) 编辑
摘要: #### API: https://timor.tech/api/holiday/year/2023 > 请求结果示例 ```json { "code": 0, "holiday": { "01-01": { "holiday": true, "name": "元旦", "wage": 3, "da 阅读全文
posted @ 2023-05-24 11:05 JentZhang 阅读(4923) 评论(0) 推荐(1) 编辑
  2023年5月12日
摘要: Python 文件大小可读性转化 file_size_exchange.py #!/usr/bin/env python # -*- coding:utf-8 -*- # @Time:2023/5/12 17:52 # @Software:PyCharm __author__ = "JentZhan 阅读全文
posted @ 2023-05-12 18:00 JentZhang 阅读(341) 评论(0) 推荐(0) 编辑
  2023年5月4日
摘要: docker run --rm -it wurstmeister/zookeeper:latest bash 阅读全文
posted @ 2023-05-04 18:59 JentZhang 阅读(59) 评论(0) 推荐(0) 编辑
  2023年4月24日
摘要: 中国节假日判断 Python判断某年某月某一天是不是工作日/节假日。 支持 2004年 至 2023年,包括 2020年 的春节延长。 安装 pip install chinesecalendar 升级 pip install -U chinesecalendar 由于次年的节假日安排,取决于国务院 阅读全文
posted @ 2023-04-24 15:22 JentZhang 阅读(729) 评论(0) 推荐(0) 编辑
  2023年4月19日
摘要: docker swarm 集群迁移 0. 先down掉集群内的stack docker stack down es 1. 集群解散 # 在每个节点执行 docker swarm leave --force 注意: 记得备份每个节点对应的标签 node1: tag1,tag2 node2:... 集群 阅读全文
posted @ 2023-04-19 15:16 JentZhang 阅读(131) 评论(0) 推荐(0) 编辑
  2023年3月22日
摘要: # docker-compose 部署文件预览服务 ### 1. docker-compose文件准备 - docker-compose-fileview.yml ```yaml version: '3.2' services: fileview: image: keking/kkfileview: 阅读全文
posted @ 2023-03-22 11:55 JentZhang 阅读(1818) 评论(0) 推荐(0) 编辑
  2023年3月21日
摘要: rewrite location ~ ^/file/ { rewrite "^/file/(.*)$" /$1 break; #proxy_pass_request_headers on; proxy_pass http://172.25.114.5:19000; # minio服务地址 } # # 阅读全文
posted @ 2023-03-21 16:54 JentZhang 阅读(27) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页