摘要: 在Consul日常维护中,由于Consul不会自动将不可用的服务实例注销掉和移除node节点.在实际使用过程中,可能因为一些操作失误、环境变更等原因让Consul中存在一些无效实例信息,而这些实例在Consul中会长期存在,并处于断开状态。它们虽然不会影响到正常的服务消费过程,但是它们会干扰我们的监 阅读全文
posted @ 2020-11-25 15:47 liucx 阅读(4650) 评论(0) 推荐(1) 编辑
摘要: # ### 字符串的相关方法# *capitalize 字符串首字母大写 strvar = "i am a boy"# strvar = "我是一个男孩ooo" # 对于中文特殊字符无效res = strvar.capitalize()print(res) # *title 每个单词的首字母大写 ( 阅读全文
posted @ 2020-09-24 17:35 liucx 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 连接方式:mongo --host xxxx --port 27017 -u xxx -p xxx 报错: connected to: 192.168.xx.xx:27017assertion: 18 { ok: 0.0, errmsg: "auth failed", code: 18, codeN 阅读全文
posted @ 2020-08-24 11:56 liucx 阅读(4148) 评论(0) 推荐(0) 编辑
摘要: # ### 代码块 : 用冒号作为开始,用缩进来划分相同的作用域 """作用域: 作用范围""" # 基本使用 """代码块是一个整体,在条件满足时,会一并执行,否则一并不执行""" if 10 == 10: print(1) print(2) print(3) # 注意点 """在使用代码时,要么 阅读全文
posted @ 2020-07-29 09:19 liucx 阅读(169) 评论(0) 推荐(0) 编辑
摘要: # ### 变量的缓存机制 (仅对python3.6版本负责)# -->Number 部分(int,float.bool,complex)# 1.对于整数而言,-5~正无穷范围内的相同值,id一致var1 = 10var2 = 10var1 = -100var2 = -100print(id(var 阅读全文
posted @ 2020-07-23 15:20 liucx 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 问题故障:Mysql数据库意外崩溃,一直无法启动数据库。报错日志: 启动报错:service mysqld restartERROR! MySQL server PID file could not be found!Starting MySQL. ERROR! The server quit wi 阅读全文
posted @ 2020-07-20 10:42 liucx 阅读(3821) 评论(0) 推荐(0) 编辑
摘要: #### 一:注释#注释:对代码的解释#注释快捷键:notepod++: ctrl + q / pychorm: ctrl + / |ctrl + z 撤销 | ctrl + y 反撤销'''代码注释原则:不用给全部代码加注释,只需要在自己觉得重要或不好理解的部分加注释即可注释可以用中文或英文,但绝 阅读全文
posted @ 2020-07-16 09:34 liucx 阅读(326) 评论(1) 推荐(1) 编辑
摘要: kubectl cp 命令使用 kubectl cp --helpCopy files and directories to and from containers.Examples:# !!!Important Note!!!# Requires that the 'tar' binary is 阅读全文
posted @ 2020-07-09 14:50 liucx 阅读(58330) 评论(0) 推荐(1) 编辑
摘要: 背景:jenkins部署在k8s中的命名空间infra中 Jenkins集成k8s报错 连接测试报错: Error testing connection https://kubernetes.default.svc.cluster.local: Failure executing: GET at: 阅读全文
posted @ 2020-06-30 16:18 liucx 阅读(3476) 评论(0) 推荐(0) 编辑
摘要: #因在容器中排查故障需要,安装基础工具 # 查看系统版本: cat /etc/os-releas Debian基础镜像#先添加163源tee /etc/apt/sources.list << EOFdeb http://mirrors.163.com/debian/ jessie main non- 阅读全文
posted @ 2020-06-30 15:04 liucx 阅读(11106) 评论(0) 推荐(1) 编辑