摘要:
安装负载均衡metalb 安装metalb kubectl create namespace metallb-system 配置metalb #kubectl create secret generic -n metallb-system memberlist --from-literal=secr 阅读全文
摘要:
安装 NFS 服务器: 首先,打开终端并安装 NFS 服务器软件包: sudo apt update sudo apt install nfs-kernel-server 创建共享目录: 决定哪个目录你想要共享,然后创建它(如果还不存在): sudo mkdir -p /nfs/data 配置共享目 阅读全文
摘要:
安装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 阅读全文
摘要:
1 环境配置要求: apt使用阿里云的源 设置主机名及解析,设定时钟同步,关闭swap和防火墙,开启IPv4转发。 更改机器名 hostnamectl set-hostname master 2.关闭swap和防火墙 swapoff -a sed -i '/swap/s/^/#/' /etc/fst 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
from ftplib import FTP # 连接到FTP服务器 ftp = FTP('10.129.250.27') ftp.login(user='用户名', passwd='密码') # 列出FTP服务器上的文件和目录 ftp.retrlines('LIST') # 下载文件 filena 阅读全文
摘要:
web.config中输入一下内容 <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="httpTohttps" stopProcessing= 阅读全文
摘要:
git log --date=format:%Y-%m-%d --pretty=format:"%cd;%an;%s" > log.txt 阅读全文
摘要:
server { listen 443 ssl; server_name your.domain.com; ssl_certificate /path/to/certificate.crt; ssl_certificate_key /path/to/private.key; location / { 阅读全文
摘要:
FROM certbot/certbot RUN pip install certbot-dns-aliyun docker build -t certbot-aliyun . # Aliyun DNS credentials # credentials.ini文件 dns_aliyun_acces 阅读全文
摘要:
nginx-proxy配置 nginx-proxy: image: jwilder/nginx-proxy container_name: nginx-proxy restart: always ports: - 80:80 - 443:443 volumes: - ./nginx-proxy/ce 阅读全文
摘要:
`crontab` 是一个用于管理和执行定期任务的命令行工具。通过使用 `crontab` 命令,您可以创建、编辑、查看和删除用户的定时任务。下面是一些常用的 `crontab` 命令: - `crontab -e`:编辑当前用户的定时任务。如果是第一次编辑,会提示选择一个文本编辑器。在编辑器中,您 阅读全文
摘要:
import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.base import MIMEBase from email imp 阅读全文
摘要:
import smtplib from email.mime.text import MIMEText # SMTP服务器设置 smtp_server = 'smtp.qq.com' smtp_port = 587 secure_connection = 'STARTTLS' # 发件人和收件人信息 阅读全文
摘要:
public string GetOriginalClientIPAddress(HttpContext context) { string originalClientIPAddress = context.Request.Headers["X-Forwarded-For"]; if (!stri 阅读全文
摘要:
=MID(G2,7,4)&"-"&MID(G2,11,2)&"-"&MID(G2,13,2) 阅读全文
摘要:
using System; using System.Net; using System.Net.Mail; class Program { static void Main(string[] args) { string smtpHost = "<your-smtp-host>"; int smt 阅读全文
摘要:
using NPOI.SS.Formula.Functions; using System; using System.Collections.Generic; using System.Collections.Specialized; using System.IO; using System.L 阅读全文
摘要:
public static class ModelCopier { public static void CopyCollection<T>(IEnumerable<T> from, ICollection<T> to) { if (from == null || to == null || to. 阅读全文
摘要:
// See https://aka.ms/new-console-template for more information using ReduceImage; Console.WriteLine("Hello, World!"); string folderPath = "C:\\Users\ 阅读全文
摘要:
we7.diyhey.com/admin/login 阅读全文
摘要:
docker run -it --rm -p 80:80 -v /etc/letsencrypt:/etc/letsencrypt -v /var/lib/letsencrypt:/var/lib/letsencrypt certbot/certbot certonly docker nginx d 阅读全文
摘要:
Windows 11 鼠标右键可选择 cmd 命令行选项-CSDN博客 Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cmd_here] @=" 阅读全文
摘要:
Windows 11 Classic Context Menu - Windows 11恢复旧版右键菜单工具 阅读全文
摘要:
version: '3' services: mysql: image: mysql:tag environment: - MYSQL_LOWER_CASE_TABLE_NAMES=1 volumes: - ./data:/var/lib/mysql ports: - 3306:3306 resta 阅读全文
摘要:
console.log('VITE_API_URL=' + import.meta.env.VITE_API_URL); 阅读全文
摘要:
短信发送限制: 每分钟内发送上限1 条 每小时内发送上限5 条 每个自然日内发送上限10 条 阅读全文
摘要:
在线制作ico图标 | 在线ico图标转换工具 方便制作favicon.ico - 比特虫 - Bitbug.net 阅读全文
摘要:
在线jpg,png图片转SVG工具-BeJSON.com 阅读全文
摘要:
https://www.askchat.ai/ 阅读全文
摘要:
Windows11如何不用密码自动登录系统 Windows11如何不用密码自动登录系统_win11家庭版自动登录-CSDN博客 阅读全文
摘要:
Yarn 是一个 JavaScript 包管理器,用于管理项目的依赖关系。默认情况下,Yarn 使用官方的 npm registry 作为源来下载和安装依赖项。 然而,由于官方源可能在国内访问速度较慢,您可以使用国内的镜像源来加快依赖项的下载速度。以下是一些常用的国内镜像源: 淘宝镜像:https: 阅读全文
摘要:
ufw allow from 192.168.3.2ufw deny from 192.168.3.2 ufw enable ufw disable 阅读全文
摘要:
mengtree / 工作流引擎 工作流引擎: 该流程引擎完全开源免费,致力于打造与平台组织架构无关、高扩展的工作流引擎。 通过自定义用户选择器和条件处理器实现既有业务的组织架构关联和审批过程处理。 (gitee.com) 阅读全文
摘要:
【npm报错】cnpm install 无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\cnpm.ps1,因为在此系统中禁止执行脚本 - 知乎 (zhihu.com) 阅读全文
摘要:
让 .NET 开发更简单,更通用,更流行。 Furion | Furion Admin.NET: 🔥基于.NET 8(Furion)/SqlSugar实现的通用管理平台。整合最新技术,模块插件式开发,前后端分离,开箱即用。集成多租户、缓存、数据校验、鉴权、事件总线、动态API、通讯、远程请求、任务 阅读全文
摘要:
错误:MySQL server has gone away 解决办法: 1、参数作用 max_allowed_packet参数是指mysql服务器端和客户端在一次传送数据包的过程当中最大允许的数据包大小。如果超过了设置的最大长度,则会数据库保持数据失败。 2、问题场景 ● 有时候业务的需要,可能会存 阅读全文