摘要: CentOS 7 搭建Kafka集群 服务器环境准备 | IP | OS | JDK | | | | | | 192.168.1.25 | CentOS 7.9 | 1.8 | | 192.168.1.28 | CentOS 7.9 | 1.8 | | 192.168.1.22 | CentOS 7 阅读全文
posted @ 2023-04-18 15:52 时光煮酒丶 阅读(221) 评论(0) 推荐(0)
摘要: 安装依赖 yum -y install gd-devel openssl-devel 编译安装 ./configure --prefix=/usr/local/nginx_server --with-openssl=/usr/local --with-pcre --with-http_ssl_mod 阅读全文
posted @ 2023-04-12 15:15 时光煮酒丶 阅读(140) 评论(0) 推荐(0)
摘要: 最近用PyQT写个窗体工具,用到QFileDialog处理文件时程序就崩掉了,网上查的降版本,换32位解释器都尝试了都不靠谱,后面无意中看到一段示例代码终于解决了,记录一下,在给掉坑里的小伙伴做个参考。 原代码是用 qt 模板生成的,添加的构造方法: # -*- coding: utf-8 -*- 阅读全文
posted @ 2023-04-12 14:00 时光煮酒丶 阅读(969) 评论(0) 推荐(0)
摘要: 一、服务器环境 CentOS 版本:CentOS Linux release 7.6.1810 (Core) 默认的 OpenSSL 版本: openssl version 提示如下: OpenSSL 1.0.2k-fips 26 Jan 2017 二、升级教程 1、下载最新版的 OpenSSL 下 阅读全文
posted @ 2023-04-12 13:56 时光煮酒丶 阅读(332) 评论(0) 推荐(0)
摘要: import json import requests """ https://sm.ms/ sm.ms 图床API封装 """ class UploadToSM: def __init__(self): self.headers = {'Authorization': 'xxxxxxxxxxxxx 阅读全文
posted @ 2023-02-20 22:36 时光煮酒丶 阅读(74) 评论(0) 推荐(0)
摘要: 网站使用的是freessl免费证书,经常过期了忘记更新,于是就有了下面的检测脚本,配合钉钉机器人临近到期了就告警。 import socket import ssl from datetime import datetime import OpenSSL def SSLExpireDateCheck 阅读全文
posted @ 2022-12-27 17:57 时光煮酒丶 阅读(42) 评论(0) 推荐(0)