2025年10月14日
摘要: 1. ChatGPTNextWeb https://github.com/ChatGPTNextWeb/NextChat 2. ChatgptWEB https://github.com/Chanzhaoyu/chatgpt-web 3. antdesign-x https://ant-design 阅读全文
posted @ 2025-10-14 10:32 袜子破了 阅读(16) 评论(0) 推荐(0)
  2025年9月19日
摘要: 解决方案:配置环境变量:MIDWAY_LOGGER_WRITEABLE_DIR 源码是: getDefaultMidwayLoggerConfig(appInfo) { var _a; const isDevelopment = (0, util_1.isDevelopmentEnvironment 阅读全文
posted @ 2025-09-19 18:58 袜子破了 阅读(5) 评论(0) 推荐(0)
  2025年6月30日
摘要: 在 CentOS 系统上安装微软 SQL Server,可按以下步骤操作: 1. 导入微软的 SQL Server 源 首先,你需要导入微软的 SQL Server 源,以便系统能够识别并安装 SQL Server。打开终端,执行以下命令: bash sudo curl -o /etc/yum.re 阅读全文
posted @ 2025-06-30 23:13 袜子破了 阅读(35) 评论(0) 推荐(0)
摘要: 在 CentOS 7 上安装 PostgreSQL 的步骤如下: 1. 添加 PostgreSQL 官方仓库 首先需要配置 PostgreSQL 的官方 YUM 源: bash sudo yum install -y https://download.postgresql.org/pub/repos 阅读全文
posted @ 2025-06-30 22:57 袜子破了 阅读(57) 评论(0) 推荐(0)
  2025年6月24日
摘要: 使用 PL/V8 扩展实现带内存缓存的退休时间计算函数 要实现按省份查询退休剩余时间并将配置表预加载到内存,我们可以利用 JavaScript 的对象特性来创建内存映射。以下是完整实现: 1. 确保 PL/V8 扩展已启用 sql CREATE EXTENSION IF NOT EXISTS plv 阅读全文
posted @ 2025-06-24 14:01 袜子破了 阅读(18) 评论(0) 推荐(0)
  2025年5月6日
摘要: 方法1:使用 Homebrew Homebrew 是 macOS 的一个包管理器,它可以让安装和管理软件变得非常简单。 安装 Homebrew(如果你还没有安装的话): 打开终端(Terminal),然后粘贴以下命令并回车: /bin/bash -c "$(curl -fsSL https://ra 阅读全文
posted @ 2025-05-06 08:58 袜子破了 阅读(760) 评论(0) 推荐(0)
摘要: 安装redis 安装 EPEL 仓库(如果尚未安装): sudo yum install epel-release 安装 Redis: sudo yum install redis 启动 Redis 服务: sudo systemctl start redis 验证 Redis 是否成功安装并运行: 阅读全文
posted @ 2025-05-06 08:54 袜子破了 阅读(15) 评论(0) 推荐(0)
  2025年5月5日
摘要: 服务端 const http2 = require('http2'); const { streamToBuffer } = require('./buffer') // 创建h2c服务器[3](@ref) const server = http2.createServer(); // 注册RPC方 阅读全文
posted @ 2025-05-05 00:34 袜子破了 阅读(29) 评论(0) 推荐(0)
  2025年5月2日
摘要: 要在Nginx中使用Let's Encrypt实现HTTPS,可以按照以下步骤操作: ​​安装Certbot工具​​首先需要安装Certbot及其Nginx插件,不同系统的安装命令如下: Ubuntu/Debian: sudo apt update sudo apt install certbot 阅读全文
posted @ 2025-05-02 19:26 袜子破了 阅读(111) 评论(1) 推荐(0)
  2024年1月5日
摘要: function getDateTimeString() { const now = new Date() const year = now.getFullYear(); const month = now.getMonth() + 1; const day = now.getDate(); con 阅读全文
posted @ 2024-01-05 11:06 袜子破了 阅读(91) 评论(0) 推荐(0)