摘要: 博客新地址 https://blog.coolsre.com/ 阅读全文
posted @ 2025-11-26 17:42 忙碌在路上 阅读(5) 评论(0) 推荐(0)
摘要: 首先http段填写map映射 map $http_user_agent $cleaned_user_agent { default $http_user_agent; "~(.*)KHTML(.*)" "$1$2"; } 上面的实例中我替换掉的是KHTML这个字符串,$1$2是返回匹配的KHTML前 阅读全文
posted @ 2025-06-13 11:12 忙碌在路上 阅读(28) 评论(0) 推荐(0)
摘要: 在进行前端项目开发的时候,编译启动dev环境报错emitting CompressionPluginKilled,无论如何清理node环境问题依然,重新clone相关进行启动也无法解决,最后 发现是vscode远程开发的环境中也使用了该命令启动,虽然也失败了,但是可能是进程之间有冲突,关闭vscod 阅读全文
posted @ 2024-02-08 10:18 忙碌在路上 阅读(384) 评论(0) 推荐(0)
摘要: 资产清单: [demo1] 172.22.32.25 hostname=hostname1 172.22.32.26 hostname=hostname2 172.22.32.27 hostname=hostname3 172.22.32.28 hostname=hostname4 172.22.3 阅读全文
posted @ 2023-06-06 18:01 忙碌在路上 阅读(347) 评论(0) 推荐(0)
摘要: ansible结果写入excel 阅读全文
posted @ 2023-05-22 15:37 忙碌在路上 阅读(455) 评论(0) 推荐(0)
摘要: 虚拟机配置bond网卡mode模式为4时控制台一直循环输出: May 4 11:32:03 local-huajing kernel: bond0: (slave ens33): An illegal loopback occurred on slave#012Check the configura 阅读全文
posted @ 2023-05-05 09:23 忙碌在路上 阅读(824) 评论(0) 推荐(0)
摘要: http://docs.haproxy.org/ 阅读全文
posted @ 2023-03-18 21:46 忙碌在路上 阅读(58) 评论(0) 推荐(0)
摘要: IFS= read -r line 的意义 阅读全文
posted @ 2023-03-17 18:41 忙碌在路上 阅读(181) 评论(0) 推荐(0)
摘要: [root@k8s-m ~]# kubectl apply -f metallbpool.yaml Error from server (InternalError): error when creating "metallbpool.yaml": Internal error occurred: 阅读全文
posted @ 2023-03-04 14:10 忙碌在路上 阅读(803) 评论(0) 推荐(0)
摘要: 众所周知,我们使用kubeadm init 初始化一个新的集群的时候,经常因为国外镜像无法pull到而失败,我们可以通过初始化时给命令加上--config=config.yaml参数,给命令传入额外参数,里面定义我们 的自定义镜像地址和k8s版本(以便确认tag版本)。当然哈有其他更多参数,具体可以 阅读全文
posted @ 2023-03-04 10:25 忙碌在路上 阅读(735) 评论(0) 推荐(0)
摘要: 1、首先客户端创建普通用户,记得保留用户的家目录,并设置该用户的密码 2、客户端修改sudoer文件添加sudo用户 并设置切换不提示密码,可执行所有权限,如下; 用户名 ALL=(root:root) NOPASSWD: ALL 3、设置该用户在控制机器上的免密登录,可以使用 ssh-copy-i 阅读全文
posted @ 2023-02-24 10:57 忙碌在路上 阅读(739) 评论(0) 推荐(0)
摘要: 报错: | UNREACHABLE! => { "changed": false, "msg": "Failed to create temporary directory.In some cases, you may have been able to authenticate and did n 阅读全文
posted @ 2023-02-24 10:30 忙碌在路上 阅读(1397) 评论(0) 推荐(0)
摘要: kubectl patch storageclass course-nfs-storage -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}强制删除pvc:kubectl  阅读全文
posted @ 2023-02-22 09:33 忙碌在路上 阅读(158) 评论(0) 推荐(0)
摘要: 初识skywalking 阅读全文
posted @ 2023-02-20 21:19 忙碌在路上 阅读(125) 评论(0) 推荐(0)
摘要: CUDA_VISIBLE_DEVICES='0' MXNET_CUDNN_LIB_CHECKING=0 MXNET_USE_FUSION=0 MXNET_CUDNN_AUTOTUNE_DEFAULT=0 python -u train.py --network r100 --dataset emor 阅读全文
posted @ 2023-02-16 14:35 忙碌在路上 阅读(70) 评论(0) 推荐(0)
摘要: 可能是因为之前集群内安装过nginx-ingress,没有删除彻底,再次安装nginx-ingress的时候就提示有资源存在。 报错如下: Error: INSTALLATION FAILED: rendered manifests contain a resource that already e 阅读全文
posted @ 2023-02-04 14:48 忙碌在路上 阅读(1598) 评论(0) 推荐(1)
摘要: 仓库安装: yum install -y epel-release 安装: yum install –y clamav clamav-update 更新病毒库: /usr/bin/freshclam 使用: clamscan --exclude-dir=/sys/ -i -r / 说明:--excl 阅读全文
posted @ 2023-02-04 10:56 忙碌在路上 阅读(56) 评论(0) 推荐(0)
摘要: import urllib3import ddddocrcode_url = "http://www.xxxx.com/code.php"headers = "{你的header是内容}"http = urllib3.PoolManager() resq = http.request('GET', 阅读全文
posted @ 2023-01-15 10:24 忙碌在路上 阅读(798) 评论(0) 推荐(0)
摘要: 正常安装 pip install ddddocr 但是因为会使用国外源,很慢,所以我们使用国内源 首先先安装opencv-python-headless注意要使用小于4.3版本的,否则按照不上,windows忽略这一步 pip install -i https://mirrors.bfsu.edu. 阅读全文
posted @ 2023-01-12 18:00 忙碌在路上 阅读(933) 评论(0) 推荐(0)
摘要: 前因:因为要搭建ingress-nginx,根据官方提供的yaml文档,里面有2处用的到的镜像是需要从registry.k8s.io下载的,虚拟机无法访问到该地址,因为我们这里使用阿里云的容器镜像服务来构建镜像,下载到本地,然后更改yaml文件image源即可正常部署ingress-nginx 关键 阅读全文
posted @ 2022-12-27 16:46 忙碌在路上 阅读(866) 评论(0) 推荐(0)
摘要: 前因: 今天打开本地测试k8s集群,执行kubectl get nodes,直接提示证书过期了,如图: 通过提示确实是过期了,那么我们来使用集群证书命令确认以下:执行 kubeadm certs check-expiration 确实,跟提示的一致。 解决方式: 第一步: 手动更新证书,执行:kub 阅读全文
posted @ 2022-12-20 09:37 忙碌在路上 阅读(747) 评论(0) 推荐(0)
摘要: centos添加本地yum源 阅读全文
posted @ 2022-09-19 09:52 忙碌在路上 阅读(259) 评论(0) 推荐(0)
摘要: jenkins版本:Jenkins 2.332.3 步骤一:配置文件修改 cd /var/lib/jenkins/updates 执行如下替换命令: sed -i 's/https:\/\/updates.jenkins.io\/download/https:\/\/mirrors.tuna.tsi 阅读全文
posted @ 2022-08-11 15:47 忙碌在路上 阅读(839) 评论(0) 推荐(0)
摘要: kafka简单使用,参考官方教程 阅读全文
posted @ 2022-08-03 10:01 忙碌在路上 阅读(464) 评论(0) 推荐(0)
摘要: 获取配置文件中的证书及到期时间 date_ssl=openssl x509 -in `grep -rh 'pem' /opt/nginx/conf/sites/* |awk '{print $2}'|awk -F ';' '{print$1}'|uniq` -noout -enddate|awk - 阅读全文
posted @ 2022-07-20 15:00 忙碌在路上 阅读(769) 评论(0) 推荐(0)
摘要: 需求:当然需求来源于生活,我们的一个项目需要拉取该项目的分支进行打包,同时也需要通过传递一个配置文件参数,二者是一 一对应的,在maven打包的时候使用该参数 之前都是手动靠记忆填写分支参数和配置文件参数。如今可以利用Active choises parameter插件进行动态的选择,实现选择分支后 阅读全文
posted @ 2022-04-01 14:38 忙碌在路上 阅读(692) 评论(0) 推荐(0)
摘要: 转载于:https://www.cnblogs.com/liuqingzheng/p/11080680.html 流程如下图所示: (1)更新数据库数据 (2)数据库会将操作信息写入binlog日志当中 (3)订阅程序提取出所需要的数据以及key (4)另起一段非业务代码,获得该信息 (5)尝试删除 阅读全文
posted @ 2022-03-31 13:42 忙碌在路上 阅读(65) 评论(0) 推荐(0)
摘要: ls | awk '{if(length($0)==41) {print $0}}' | xargs rm -rf 需求主要来源于我们项目上手动上传的文件是41位长度的,需要清空,文件夹中又有其他正常的文件不需要删除。 阅读全文
posted @ 2022-03-23 14:29 忙碌在路上 阅读(149) 评论(0) 推荐(0)
摘要: 一、docker安装 忽略,参考官网 二、安装openldap docker run -d --name openldap -p 389:389 -p 636:636 osixia/openldap:latest 命令说明:下载并运行,容器名称:openldap 开放端口:389 ,639,使用镜像 阅读全文
posted @ 2022-03-17 15:07 忙碌在路上 阅读(3079) 评论(0) 推荐(0)
摘要: 输入包含某个关键字的一行记录 awk '{if($0~"listAuths") print}' xxx.log 输入包含某个关键字的一行记录中的某个字段,此案例为第三字段 awk '{if($0~"listAuths") print $3}' xxx.log 配合重定向符号可以输出成为文件。 阅读全文
posted @ 2022-03-16 16:17 忙碌在路上 阅读(284) 评论(0) 推荐(0)
摘要: Kubernetes资源在线生成工具,支持deployment,daemonset,statefulset三种资源在线生成。 字段说明的很详细友好,生成后支持一键复制。 https://k8syaml.com/ https://k8syaml.com/ 阅读全文
posted @ 2022-03-09 17:20 忙碌在路上 阅读(300) 评论(0) 推荐(0)
摘要: 方法1: 方法一: In [1]: str="dfadDFAfadfefFDs2e3rDFDFDFd3f" In [2]: print({i:str.count(i) for i in str}) {'d': 4, 'f': 5, 'a': 2, 'D': 5, 'F': 5, 'A': 1, 'e 阅读全文
posted @ 2022-03-02 15:04 忙碌在路上 阅读(159) 评论(0) 推荐(0)
摘要: kubectl create deployment nginx --image=nginx:1.20 -o yaml --dry-run=client > my-deployment.yaml cat my-deployment.yaml apiVersion: apps/v1 kind: Depl 阅读全文
posted @ 2022-03-02 14:54 忙碌在路上 阅读(238) 评论(0) 推荐(0)
摘要: 参考文章:https://www.cnblogs.com/lidong94/p/14518362.html 纠正问题: 1、第四步创建NFS provisioner的时候使用的容器有一点问题,无法创建出pv,可以把镜像修改为:easzlab/nfs-subdir-external-provision 阅读全文
posted @ 2022-02-11 15:53 忙碌在路上 阅读(307) 评论(0) 推荐(0)
摘要: k8s安装dashboard面板 阅读全文
posted @ 2022-02-09 17:18 忙碌在路上 阅读(322) 评论(0) 推荐(0)
摘要: 一、下载nexus https://sonatype-download.global.ssl.fastly.net/repository/downloads-prod-group/3/nexus-3.37.3-02-unix.tar.gz 二、服务器上建立nexus文件夹,比如opt下 mkdir 阅读全文
posted @ 2022-01-27 17:12 忙碌在路上 阅读(821) 评论(0) 推荐(0)
摘要: 阿里云免费证书文件验证,nginx返回403,已按照要求建立/.well-known/pki-validation/目录,上传fileauth.txt文件。 解决: 在需要的server段内加 location ~ /.well-known { allow all; } 阅读全文
posted @ 2022-01-21 17:45 忙碌在路上 阅读(881) 评论(0) 推荐(0)
摘要: tcpdump 阅读全文
posted @ 2021-12-08 10:37 忙碌在路上 阅读(49) 评论(0) 推荐(0)
摘要: #!/bin/bash [[ $1 =~ ^[0-9]$ ]] && echo 1 || echo 0 阅读全文
posted @ 2021-12-01 16:59 忙碌在路上 阅读(173) 评论(0) 推荐(0)
摘要: snoar scanner 阅读全文
posted @ 2021-11-26 11:54 忙碌在路上 阅读(576) 评论(0) 推荐(0)