2026年2月6日

摘要: nc -zv localhost 9004 :-z 是扫描模式,用于只扫描端口而不发送数据;第一个 -v 是详细模式,会输出更多信息; 阅读全文
posted @ 2026-02-06 11:07 张博的博客 阅读(2) 评论(0) 推荐(0)
摘要: curl -fsSL https://ollama.com/install.sh | sh ollama serve & ollama pull bge-m3 curl -X POST http://127.0.0.1:11434/api/embeddings -H "Content-Type: a 阅读全文
posted @ 2026-02-06 09:24 张博的博客 阅读(4) 评论(0) 推荐(0)

2026年2月5日

摘要: curl 地址: http://10.198.0.2:18080/v1-openai/chat/completions 那么代码调用openai接口就需要去掉后面2层变成: http://10.198.0.2:18080/v1-openai 阅读全文
posted @ 2026-02-05 17:45 张博的博客 阅读(1) 评论(0) 推荐(0)
摘要: docker pull ubuntu docker images docker run -it ubuntu bash apt-get update apt-get install wget conda create -n Test1 python=3.12 阅读全文
posted @ 2026-02-05 15:37 张博的博客 阅读(3) 评论(0) 推荐(0)
摘要: [{"role": "system", "content": f"""你是一个专业的SQL专家,专门将自然语言转换为SQL查询。 ####### 你的任务 根据用户的问题和提供的数据库表结构,生成正确、高效的SQL查询。 ## 规则 1. 只生成SELECT语句,不允许任何修改数据的操作 2. 必须 阅读全文
posted @ 2026-02-05 09:46 张博的博客 阅读(4) 评论(0) 推荐(0)

2026年2月3日

摘要: 实操步骤(共 3 步) 步骤 1:确保 rc.local 文件可执行(部分系统默认禁用) bash 运行 赋予执行权限 sudo chmod +x /etc/rc.local 确保文件有执行入口(首行必须是#!/bin/sh -e) sudo vim /etc/rc.local 文件首行必须是:#! 阅读全文
posted @ 2026-02-03 14:39 张博的博客 阅读(1) 评论(0) 推荐(0)
摘要: 浪里白朴piao 阅读全文
posted @ 2026-02-03 10:44 张博的博客 阅读(2) 评论(0) 推荐(0)
摘要: Ollama Download Ollama. run with: ollama run glm-ocr Ollama will automatically use image file path when an image is dragged into the terminal: ollama 阅读全文
posted @ 2026-02-03 10:22 张博的博客 阅读(3) 评论(0) 推荐(0)
摘要: https://docsmall.com/pdf-to-image 阅读全文
posted @ 2026-02-03 10:13 张博的博客 阅读(2) 评论(0) 推荐(0)

2026年2月2日

摘要: from fastapi import FastAPI from pydantic import BaseModel # 1. 初始化 FastAPI 应用实例 app = FastAPI( title="字符串处理接口", # 接口文档标题 description="接收单个字符串,返回处理后的字 阅读全文
posted @ 2026-02-02 17:44 张博的博客 阅读(1) 评论(0) 推荐(0)

导航