摘要: windows 阅读全文
posted @ 2021-07-14 10:54 myblogexecutive 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 迁移只能在同一个zone内能行,跨Region与Zone不行 阅读全文
posted @ 2021-07-13 22:40 myblogexecutive 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 一、首先在master上生成新的token 1 kubeadm token create --print-join-command [root@cn-hongkong nfs]# kubeadm token create --print-join-commandkubeadm join 172.31 阅读全文
posted @ 2021-07-13 11:15 myblogexecutive 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-11 22:01 myblogexecutive 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-11 21:38 myblogexecutive 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-11 16:51 myblogexecutive 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-11 16:14 myblogexecutive 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-11 15:42 myblogexecutive 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-11 15:14 myblogexecutive 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-10 22:37 myblogexecutive 阅读(287) 评论(0) 推荐(0) 编辑
摘要: centos7 docker run -d \ -p 8000:8080 \ --name cadvisor \ --privileged=true \ -v /:/rootfs:ro \ -v /var/run:/var/run:rw \ -v /var/lib/docker/:/var/lib/ 阅读全文
posted @ 2021-07-10 21:03 myblogexecutive 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-10 19:59 myblogexecutive 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-10 19:22 myblogexecutive 阅读(22) 评论(0) 推荐(0) 编辑
摘要: kubeadm reset -fmodprobe -r ipiplsmodrm -rf ~/.kube/rm -rf /etc/kubernetes/rm -rf /etc/systemd/system/kubelet.service.drm -rf /etc/systemd/system/kube 阅读全文
posted @ 2021-07-07 15:19 myblogexecutive 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 列子:/var/cache 目录太大 1新建cache目录 mkdir /root/cache/ 2.复制原cache目录下所有文件到新目录 cp -r /var/cache/* /root/cache 3.删除原cache目录 rm -rf /var/cache 4.给新目录建立软链接 ln -s 阅读全文
posted @ 2021-07-05 08:13 myblogexecutive 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-04 15:47 myblogexecutive 阅读(23) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- # def fibonacci(n): # a = 0 # b = 1 # nums = [] # for _ in range(n): # nums.append(a) # a,b = b,a+b # return nums # for i in f 阅读全文
posted @ 2021-07-04 11:05 myblogexecutive 阅读(34) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-name = "Rose"country = "China"age = 28print(f"Hi,I'm {name}.I'm from {country},And I'm {age}")print(f"Hi,I'm {name}.I'm from {c 阅读全文
posted @ 2021-07-04 10:32 myblogexecutive 阅读(27) 评论(0) 推荐(0) 编辑
摘要: django-admin startproject mysite1 #建立项目 python manage.py runserver 启动 阅读全文
posted @ 2021-07-01 12:42 myblogexecutive 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 部署了单节点集群由于只有一个节点,而elasticsearch采用默认配置(5分片,1副本),因此群集无法放置副本会处于黄色状态。解决方案如下:可以将副本计数降低到0或将第二个节点添加到群集,以便可以将主分片和副本分片安全地放在不同的节点上。这样做以后,如果您的节点崩溃,群集中的另一个节点将拥有该分 阅读全文
posted @ 2021-06-30 14:18 myblogexecutive 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-06-30 11:37 myblogexecutive 阅读(189) 评论(0) 推荐(0) 编辑
摘要: [root@tbds-172-27-0-174 elasticsearch]# bin/elasticsearch-certutil ca ##生成证书,直接全部回车到最后 [root@tbds-172-27-0-174 elasticsearch]# bin/elasticsearch-certu 阅读全文
posted @ 2021-06-29 14:44 myblogexecutive 阅读(1170) 评论(0) 推荐(0) 编辑
摘要: 解决shiro低版本漏洞引起的问题(升级shiro) 阅读全文
posted @ 2021-06-29 11:45 myblogexecutive 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 索引 通俗地来讲,正向索引是通过key找value,反向索引则是通过value找key. 正向索引 正向索引(forward index) 以文档的ID为关键字,表中的记录文档中每个字的位置信息,查找时扫描表中每个文档中的字的信息直到找出所有包含查询关键字的文档 这种组织方法在建立索引的时候结构比较 阅读全文
posted @ 2021-06-28 17:08 myblogexecutive 阅读(42) 评论(0) 推荐(0) 编辑
摘要: cd /home/els/elasticsearch-7.13.2/bin /home/els/elasticsearch-7.13.2/jdk 阅读全文
posted @ 2021-06-28 11:46 myblogexecutive 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-06-28 10:38 myblogexecutive 阅读(54) 评论(0) 推荐(0) 编辑
摘要: https://github.com/medcl/elasticsearch-analysis-ik 阅读全文
posted @ 2021-06-28 10:28 myblogexecutive 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-06-28 09:43 myblogexecutive 阅读(27) 评论(0) 推荐(0) 编辑
摘要: import ( v2 "github.com/YFJie96/wx-mall/controller/api/v2" _ "github.com/YFJie96/wx-mall/docs" . "fmt" "github.com/gin-gonic/gin" "github.com/swaggo/g 阅读全文
posted @ 2021-06-07 09:43 myblogexecutive 阅读(232) 评论(0) 推荐(0) 编辑
摘要: select concat('DROP TABLE IF EXISTS ',table_name,";") from information_schema.tables where table_schema="db1";; db1代表库名 阅读全文
posted @ 2021-06-05 16:53 myblogexecutive 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 安装依赖 yum install libaio wget -y检查MYSQL是否已安装 yum list installed | grep mysql 如果有先卸载 # 格式 yum -y remove [包名]yum -y remove mysql-libs.x86_64 下载MySQL官网的仓库 阅读全文
posted @ 2021-06-04 16:29 myblogexecutive 阅读(102) 评论(0) 推荐(0) 编辑
摘要: chromedriver下载及配置 阅读全文
posted @ 2021-02-22 17:15 myblogexecutive 阅读(17) 评论(0) 推荐(0) 编辑
摘要: mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bakvim /etc/yum.repos.d/CentOS-Base.repo# CentOS-Base.repo## The mirror system 阅读全文
posted @ 2020-11-12 17:52 myblogexecutive 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 1.vim /usr/lib/systemd/system/docker.service 在文本内容ExecStart=/usr/bin/dockerd 后面添加如下内容: --graph <your path> 如: ExecStart=/usr/bin/dockerd --graph /home 阅读全文
posted @ 2020-11-04 15:31 myblogexecutive 阅读(542) 评论(0) 推荐(0) 编辑
摘要: dubbo的版本由2.7.0升级到2.7.5。出现了dubbo无效消费的情况, 经过检查发现zookeeper 里面出现大量相同的注册信息。dubbo是通过JDK的ShutdownHook来完成优雅停机的, 所以如果我们使用”kill -9 PID”等强制关闭指令,是不会执行优雅停机的, 只有通过” 阅读全文
posted @ 2020-09-27 18:26 myblogexecutive 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1.进入jenkins安装目录(默认为/root/.jenkins/jobs) 2.进入对于项目名对config.xml进行sed 替换 3.点击reload configuratiom 阅读全文
posted @ 2020-09-17 17:21 myblogexecutive 阅读(724) 评论(0) 推荐(0) 编辑
摘要: f.seek(p, 0) 或 f.seek(p) 将文件读取指针移动到文件的第p个字节处,表示绝对位置。f.seek(0)移动到文件头位置。 f.seek(p, 1)在当前位置的基础上,将文件读取指针移动p个字节,表示相对位置 f.seek(p, 2)在文件尾的基础上,将文件读取指针移动p个字节,表 阅读全文
posted @ 2020-09-09 15:54 myblogexecutive 阅读(1318) 评论(0) 推荐(0) 编辑
摘要: eval() 将字符串类型的代码执行并返回结果 exec()将自字符串类型的代码执行 compile 将字符串类型的代码编译。代码对象能够通过exec语句来执行或者eval()进行求值。 参数说明: 1. 参数source:字符串或者AST(Abstract Syntax Trees)对象。即需要动 阅读全文
posted @ 2020-09-09 15:47 myblogexecutive 阅读(85) 评论(0) 推荐(0) 编辑
摘要: pm2 stop bus pm2 delete bus ./node_modules/.bin/cross-env NODE_ENV=production pm2 start bin/www --name 'bus' -o out.log -e error.log --log-date-format 阅读全文
posted @ 2020-08-28 16:32 myblogexecutive 阅读(234) 评论(0) 推荐(0) 编辑
摘要: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn 模块名 阅读全文
posted @ 2020-08-17 11:08 myblogexecutive 阅读(217) 评论(0) 推荐(0) 编辑