跳转到主要内容

最近更新的页面

ansible 一键修改服务器密码脚本

知识库

脚本安装 执行安装脚本setup.sh 安装ansible和yq命令 #!/bin/bash # 安装ansible yum install ansible-2.9.27-1.el7.no...

centos 配置telnet登陆

知识库

相关软件安装 yum install telnet telnet-server xinetd 修改 pam 模块 telnet 权限 将etc/pam.d/remote中的auth ...

ansible使用

知识库

安装 # 安装扩展源 yum install epel-release yum install ansible 编写配置文件 # 编辑配置文件 vi /etc/ansible/...

由 董列涛 更新于 3个月前

git使用指南

知识库

# Git global setup git config --global user.name "你的名字" git config --global user.email "your emai...

由 董列涛 更新于 3个月前

VUE前端缓存不刷新问题

知识库

nginx配置增加 location / { # 不缓存首页,解决VUE单页面发版后不生效 add_header Cache-Control "no-ca...

由 董列涛 更新于 3个月前

创建NETCORE新项目

rust&&netcore

安装netcore runtime:https://dotnet.microsoft.com/zh-cn/download vscode扩展:https://marketplace.visu...

由 董列涛 更新于 3个月前

coredns增加全局解析

k8s

设置域名不解析 我们经常使用FQDN设置完整主机名,导致k8s会将容器的搜索域会增加一个域,k8s进行自动后缀增加后匹配 cat /etc/resolv.conf 然后有人刚好(恶意)注册了...

由 董列涛 更新于 4个月前

pull&&retag&&push

中间件

从源仓库拉取镜像,改名,推送,根据实际情况修改源地址和目标地址 #!/usr/bin/env python3 import subprocess import sys def pull_r...

由 董列涛 更新于 4个月前

清除状态不正常的pod&&celanPods.sh

k8s

定时清除脚本 #!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin pods...

由 董列涛 更新于 4个月前

我要学摄影

u3d&&blender&&unity3d

由 董列涛 更新于 4个月前

ingress-nginx的几个小技巧

k8s

所有注释:https://iovhm.com/book/books/k8s/page/nginx-ingress 文件上传限制 nginx.ingress.kubernetes.io/prox...

由 董列涛 更新于 4个月前

挂载磁盘&&分区

k8s

磁盘读写速度测试 # 写入测试(测试哪块磁盘就进入到哪个挂载) dd if=/dev/zero of=testfile bs=1G count=1 conv=fdatasync # 清空缓存...

由 董列涛 更新于 4个月前

k3s

k8s

k3s是rancher精简的k8s实现,去除了大部分人用不到的功能,将一些组件进行集成,可以快速的搭建k8s集群 https://github.com/rancher/k3s/releases ...

由 董列涛 更新于 4个月前

pandas创建excel

python&&ffmpeg&opencv

# 创建excel data_report_task_item_detail_excel = pd.DataFrame( columns=[ "item_id", ...

由 董列涛 更新于 4个月前

链接数据库

python&&ffmpeg&opencv fastapi

# 安装 pip install sqlalchemy aiomysql -i https://pypi.tuna.tsinghua.edu.cn/simple

由 董列涛 更新于 5个月前

使用中间件(拦截器)

python&&ffmpeg&opencv fastapi

标准做法 # LoginMiddleware.py from fastapi import Request,status from starlette.middleware.base imp...

由 董列涛 更新于 5个月前

参数传递

python&&ffmpeg&opencv fastapi

from参数和json body 参数是互斥的,只能使用一种 Query, Form, Body, 可以省略 ,匹配优先级是:路径参数,查询参数,body参数 查询参数和from参数 @ap...

由 董列涛 更新于 5个月前

python restful API服务器fastAPI

python&&ffmpeg&opencv fastapi

组件 fastAPI : https://fastapi.tiangolo.com/ uvicorn: https://www.uvicorn.org/ 项目模板:https://i...

由 董列涛 更新于 5个月前

k3s证书过期&ks8证书过期&rancher 轮换证书

k8s

参考网址 https://mp.weixin.qq.com/s?__biz=MzkyNzM4Nzk1NQ==&mid=2247500723&idx=1&sn=64def8cd6ec7fd8...

由 董列涛 更新于 5个月前

k8s集群备份(迁移)工具velero

k8s

安装velero # 参考地址:https://support.huaweicloud.com/bestpractice-cce/cce_bestpractice_0306.html #...

由 董列涛 更新于 5个月前