WishMeLz

生活其实很有趣

[置顶] Docker 使用指南

1. 安装 Docker# 更新系统 yum update # 安装依赖 yum install -y yum-utils device-mapper-persistent-data lvm2 # 添加 Docker 源 yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo # 查看可用的 Docker 版本 yum list docker-ce --showduplicates | sort -r # 安装指定版本(示例:...

Docker本地部署DeepSeek R1+Dify 支持私有知识库

搭建自己的知识题库,全篇都是干活,没有废话,照抄就行了。以及各种踩坑记录1、Dify部署git clone https://github.com/langgenius/dify.git cd dify make build-all上面执行完成后docker会有这些本地镜像启动容器cd dify/docker cp .env.example .env docker-compose up -d报错Error response from daemon: manifest for langgenius/dify-api:1.0.0 not found: m...

使用Cloudflare WorkerJs 为jsDelivr搭建反向代理服务

Cloudflare Worker为jsDelivr搭建反向代理服务Worker代码// 替换成你想镜像的站点 const upstream = 'cdn.jsdelivr.net' // 如果那个站点有专门的移动适配站点,否则保持和上面一致 const upstream_mobile = 'cdn.jsdelivr.net' const blocked_region = ['KP','RU'] const blocked_ip_address = ['0.0.0.0', '127.0.0.1'] const replace_dic...

免费DNS [he.net]

入口: https://dns.he.net注册: https://ipv6.he.net/certification/register.php注册需要美国地址, 不能使用谷歌邮箱和微软邮箱和proton免费邮箱. 激活邮箱认证添加域名修改DNS

Mac brew安装nvm

安装brewhttps://github.com/Homebrew/brew/releases安装nvmbrew install nvm安装成功后不能直接使用 nvm 命令, 安装成功之后,还不能直接使用 nvm 命令,需要进行以下配置,将以下命令复制到终端执行:echo "source $(brew --prefix nvm)/nvm.sh" >> .bash_profile. ~/.bash_profile //需要重新定向来源

阿里OSS配置静态页面

阿里云OSS配置静态页面,部署备案页面。可以多域名解析修改title即可1 、创建 Bucket2、上传静态文件3、关闭阻止公共访问4、设置权限5、设置静态页面6、设置域名7、设置完成http://itsse.cn/这个时候就行了,用不到 https。 如果要设置https 需要手动上ssl证书8、进阶:使用 Certimate 自动更新SSL证书

shell脚本备份数据库

#!/bin/bash # 设置变量 BACKUP_DIR="/backsql" # 本地备份目录 MYSQL_USER="user" # MySQL 用户名 MYSQL_PASSWORD="5CYGfYhjEXE4STY" # MySQL 密码 MYSQL_HOST="127.0.1" # MySQL 服务器地址,如果是远程服务器,请修改为相应的IP地址 MYSQL_PORT="22619" # MySQL 端口号 DATABASE_...

gemini使用笔记

Gemini 转OpenAI格式: https://github.com/PublicAffairs/openai-geminiWorker代理WebSocket多模态:https://github.com/tech-shrimp/gemini-proxyGemini API申请: https://aistudio.google.com/在线聊天UI:https://github.com/ChatGPTNextWeb/NextChatgemini-2.0-flash-exp、gemini-exp-1206

docker 镜像加速

镜像加速pull.xzxo.cn方法一:docker pull whyour/qinglong:latest改为docker pull pull.xzxo.cn/whyour/qinglong:latest方法二:修改文件 /etc/docker/daemon.json(如果不存在则创建)/etc/docker/daemon.json修改JSON文件 更改为以下内容 然后保存{"registry-mirrors": ["https://pull.xzxo.cn"]}重启sudo systemctl daemo...

sub-store Docker 安装

docker 命令docker run -it -d \ --restart=always \ -e "SUB_STORE_CRON=55 23 * * *" \ -e SUB_STORE_FRONTEND_BACKEND_PATH=/xVwPGdb2tjW8jVuR7Bkv \ -p 3001:3001 \ -v /etc/sub-store:/opt/app/data \ --name sub-store \ xream/sub-store接下来需要修改tokenSUB_STORE_FRONTEND_BACKEND_PATH...

Certimate 使用教程

开源的SSL证书管理工具,可以帮助你申请SSL证书,自动续期SSL证书:https://docs.certimate.me/docs/intro1、安装-Dockergit clone git@github.com:usual2970/certimate.git && cd certimate/docker && docker compose up -d2、添加授权域名的DNS服务器,你要部署的平台都需要添加举个例子:阿里云买的域名,DNS切换到Cloudflare了。 在七牛云使用了这个二级域名的CDN。那么Clo...

ip自签名ssl证书

1、创建私钥openssl genrsa -out ca.key 20482 创建公钥openssl req -new -x509 -days 208 -key ca.key -out ca.crt3生成密钥对先装备两个文件openssl.cnf v3.ext。 其中的 IP.1 记得对应openssl.cnf 如下:[req] distinguished_name = req_distinguished_name req_extensions = v3_req [req_distinguished_name] countryName = Cou...

SSL证书管理工具

certimate 开源https://github.com/usual2970/certimatehttps://docs.certimate.me/blogohttpshttps://ohttps.com/