摘要: https://github.com/DaoCloud/public-image-mirror 增加前缀 (推荐方式)。比如: k8s.gcr.io/coredns/coredns => m.daocloud.io/k8s.gcr.io/coredns/coredns 阅读全文
posted @ 2024-06-14 08:24 shiningrise 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 实验环境 原理 生成kube-vip静态pod配置清单 export VIP=192.168.215.200 # 我的vip是192.168.215.200 export INTERFACE=ens33 #可以用 ip a 查看接口名称 # kube-vip最新镜像为v0.8.0,但我装时无法成功, 阅读全文
posted @ 2024-06-13 09:45 shiningrise 阅读(20) 评论(0) 推荐(0) 编辑
摘要: using Org.BouncyCastle.Utilities.Encoders; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threadin 阅读全文
posted @ 2024-06-12 10:10 shiningrise 阅读(5) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/shanyou/p/15556449.html https://blog.dapr.io/posts/2022/01/13/enable-dapr-with-apache-apisix-ingress-controller/ https://blog. 阅读全文
posted @ 2024-06-08 16:27 shiningrise 阅读(9) 评论(0) 推荐(0) 编辑
摘要: how to configure multiple domain (virtual host) and multiple virtual port # start the nginx proxy docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/ 阅读全文
posted @ 2024-06-03 08:25 shiningrise 阅读(29) 评论(0) 推荐(0) 编辑
摘要: docker run -p 9000:9000 -p 9001:9001 --name minio -d --restart=always -e "MINIO_ACCESS_KEY=admin" -e "MINIO_SECRET_KEY=admin123456" -v /home/data:/dat 阅读全文
posted @ 2024-06-02 16:21 shiningrise 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 安装配置相关软件 安装 PowerShell 7 / Core dotnet tool install --global PowerShell 安装 Visual Studio 扩展 Microsoft Child Process Debugging Power Tool 2022 安装插件后启动 阅读全文
posted @ 2024-06-02 13:25 shiningrise 阅读(39) 评论(0) 推荐(1) 编辑
摘要: 前提 你必须会创建aspire项目,不会的请先看微服务新体验之Aspire初体验 Aspirate (Aspir8) Aspirate 是将aspire项目发布到k8s集群的工具 安装aspirate dotnet tool install -g aspirate aspirate 初始化 切换到A 阅读全文
posted @ 2024-06-01 15:59 shiningrise 阅读(437) 评论(1) 推荐(3) 编辑
摘要: kubectl config get-contexts kubectl config use-context <context-name> kubectl config current-context 阅读全文
posted @ 2024-06-01 13:05 shiningrise 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 前提 你必须会创建aspire项目,不会的请先看微服务新体验之Aspire初体验 Aspirate (Aspir8) Aspirate 是将aspire项目发布到k8s集群的工具 安装aspirate dotnet tool install -g aspirate aspirate 初始化 切换到A 阅读全文
posted @ 2024-05-31 14:01 shiningrise 阅读(93) 评论(0) 推荐(1) 编辑
摘要: 安装aspire 查看vs版本 我这的版本是17.9.7,不支持aspire,所以需要升级 更新VS 点击 帮助->检查更新 点击更新 静等安装升级 创建aspire项目 项目创建成功,如下图 运行Aspire项目 在AspireApp1.AppHost的launchSettings.json文件中 阅读全文
posted @ 2024-05-30 13:12 shiningrise 阅读(806) 评论(4) 推荐(4) 编辑
摘要: https://github.com/jgm/pandoc 阅读全文
posted @ 2024-05-29 15:04 shiningrise 阅读(7) 评论(0) 推荐(0) 编辑
摘要: https://github.com/ddean2009/blog-auto-publishing-tools 阅读全文
posted @ 2024-05-29 14:40 shiningrise 阅读(3) 评论(0) 推荐(0) 编辑
摘要: https://github.com/Molunerfinn/PicGo https://github.com/Molunerfinn/PicGo 阅读全文
posted @ 2024-05-29 13:57 shiningrise 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 自托管模式运行dapr 新建订阅webapi项目,取名为backend 项目增加docker支持,取消https支持 修改Program.cs var builder = WebApplication.CreateBuilder(args); builder.Services.AddControll 阅读全文
posted @ 2024-05-28 15:43 shiningrise 阅读(308) 评论(0) 推荐(1) 编辑
摘要: 新建webapi项目 建项目时取消https支持,勾选docker支持, Program.cs中注释下面语句,这样部署后才能访问Swagger // Configure the HTTP request pipeline. //if (app.Environment.IsDevelopment()) 阅读全文
posted @ 2024-05-26 19:57 shiningrise 阅读(173) 评论(1) 推荐(0) 编辑
摘要: 前置条件 安装docker与dapr: 手把手教你学Dapr - 3. 使用Dapr运行第一个.Net程序 安装k8s dapr 自托管模式运行 新建一个webapi无权限项目 launchSettings.json中applicationUrl端口改成5001,如下: "applicationUr 阅读全文
posted @ 2024-05-22 15:49 shiningrise 阅读(291) 评论(0) 推荐(1) 编辑
摘要: https://github.com/winsw/winsw 阅读全文
posted @ 2024-05-20 17:03 shiningrise 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 安装负载均衡metalb 安装metalb kubectl create namespace metallb-system 配置metalb #kubectl create secret generic -n metallb-system memberlist --from-literal=secr 阅读全文
posted @ 2024-05-17 09:53 shiningrise 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 安装 NFS 服务器: 首先,打开终端并安装 NFS 服务器软件包: sudo apt update sudo apt install nfs-kernel-server 创建共享目录: 决定哪个目录你想要共享,然后创建它(如果还不存在): sudo mkdir -p /nfs/data 配置共享目 阅读全文
posted @ 2024-05-14 23:00 shiningrise 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 安装kube-vip kubectl apply -f https://kube-vip.io/manifests/rbac.yaml 使用daemonset部署kube-vip export VIP=192.168.215.200 # vip地址 export INTERFACE=ens33 ap 阅读全文
posted @ 2024-05-14 21:02 shiningrise 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 1 环境配置要求: apt使用阿里云的源 设置主机名及解析,设定时钟同步,关闭swap和防火墙,开启IPv4转发。 更改机器名 hostnamectl set-hostname master 2.关闭swap和防火墙 swapoff -a sed -i '/swap/s/^/#/' /etc/fst 阅读全文
posted @ 2024-05-14 17:34 shiningrise 阅读(373) 评论(0) 推荐(0) 编辑
摘要: ctr image pull docker.io/library/redis:7.2ctr image pull docker.io/ankane/pgvector:latestctr image pull docker.io/library/rabbitmq:3.13 sudo ctr image 阅读全文
posted @ 2024-05-11 16:05 shiningrise 阅读(18) 评论(0) 推荐(0) 编辑
摘要: sudo docker run -d --restart=unless-stopped -p 8080:80 -p 443:443 --name=rancher rancher/rancher:stable sudo docker run --privileged -d --restart=unle 阅读全文
posted @ 2024-05-09 09:38 shiningrise 阅读(24) 评论(0) 推荐(0) 编辑
摘要: from ftplib import FTP # 连接到FTP服务器 ftp = FTP('10.129.250.27') ftp.login(user='用户名', passwd='密码') # 列出FTP服务器上的文件和目录 ftp.retrlines('LIST') # 下载文件 filena 阅读全文
posted @ 2024-05-05 19:37 shiningrise 阅读(8) 评论(0) 推荐(0) 编辑
摘要: web.config中输入一下内容 <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="httpTohttps" stopProcessing= 阅读全文
posted @ 2024-04-30 16:57 shiningrise 阅读(20) 评论(0) 推荐(0) 编辑
摘要: git log --date=format:%Y-%m-%d --pretty=format:"%cd;%an;%s" > log.txt 阅读全文
posted @ 2024-04-30 14:50 shiningrise 阅读(8) 评论(0) 推荐(0) 编辑
摘要: server { listen 443 ssl; server_name your.domain.com; ssl_certificate /path/to/certificate.crt; ssl_certificate_key /path/to/private.key; location / { 阅读全文
posted @ 2024-04-30 10:49 shiningrise 阅读(31) 评论(0) 推荐(0) 编辑
摘要: FROM certbot/certbot RUN pip install certbot-dns-aliyun docker build -t certbot-aliyun . # Aliyun DNS credentials # credentials.ini文件 dns_aliyun_acces 阅读全文
posted @ 2024-04-29 15:40 shiningrise 阅读(92) 评论(0) 推荐(0) 编辑
摘要: nginx-proxy配置 nginx-proxy: image: jwilder/nginx-proxy container_name: nginx-proxy restart: always ports: - 80:80 - 443:443 volumes: - ./nginx-proxy/ce 阅读全文
posted @ 2024-04-26 13:34 shiningrise 阅读(28) 评论(0) 推荐(0) 编辑
摘要: `crontab` 是一个用于管理和执行定期任务的命令行工具。通过使用 `crontab` 命令,您可以创建、编辑、查看和删除用户的定时任务。下面是一些常用的 `crontab` 命令: - `crontab -e`:编辑当前用户的定时任务。如果是第一次编辑,会提示选择一个文本编辑器。在编辑器中,您 阅读全文
posted @ 2024-04-26 13:17 shiningrise 阅读(7) 评论(0) 推荐(0) 编辑
摘要: import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.base import MIMEBase from email imp 阅读全文
posted @ 2024-04-25 15:49 shiningrise 阅读(2) 评论(0) 推荐(0) 编辑
摘要: import smtplib from email.mime.text import MIMEText # SMTP服务器设置 smtp_server = 'smtp.qq.com' smtp_port = 587 secure_connection = 'STARTTLS' # 发件人和收件人信息 阅读全文
posted @ 2024-04-25 15:36 shiningrise 阅读(1) 评论(0) 推荐(0) 编辑
摘要: public string GetOriginalClientIPAddress(HttpContext context) { string originalClientIPAddress = context.Request.Headers["X-Forwarded-For"]; if (!stri 阅读全文
posted @ 2024-04-24 10:32 shiningrise 阅读(13) 评论(0) 推荐(0) 编辑
摘要: =MID(G2,7,4)&"-"&MID(G2,11,2)&"-"&MID(G2,13,2) 阅读全文
posted @ 2024-04-16 10:28 shiningrise 阅读(9) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Net; using System.Net.Mail; class Program { static void Main(string[] args) { string smtpHost = "<your-smtp-host>"; int smt 阅读全文
posted @ 2024-04-12 15:46 shiningrise 阅读(12) 评论(0) 推荐(0) 编辑
摘要: using NPOI.SS.Formula.Functions; using System; using System.Collections.Generic; using System.Collections.Specialized; using System.IO; using System.L 阅读全文
posted @ 2024-04-12 14:37 shiningrise 阅读(20) 评论(0) 推荐(0) 编辑
摘要: public static class ModelCopier { public static void CopyCollection<T>(IEnumerable<T> from, ICollection<T> to) { if (from == null || to == null || to. 阅读全文
posted @ 2024-04-12 12:35 shiningrise 阅读(3) 评论(0) 推荐(0) 编辑
摘要: // See https://aka.ms/new-console-template for more information using ReduceImage; Console.WriteLine("Hello, World!"); string folderPath = "C:\\Users\ 阅读全文
posted @ 2024-04-10 15:32 shiningrise 阅读(6) 评论(0) 推荐(0) 编辑
摘要: we7.diyhey.com/admin/login 阅读全文
posted @ 2024-04-03 11:23 shiningrise 阅读(25) 评论(0) 推荐(0) 编辑
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css