摘要: 问题: 最近前端vue项目迁移至K8S容器中,因在Nginx非根目录下页面下出现空白的问题 现象: 前端系统页面空白,只有标题栏 nginx容器默认配置: location / { root /usr/share/nginx/html; try_files $uri /index.html; } 解 阅读全文
posted @ 2020-12-25 16:06 liucx 阅读(4309) 评论(0) 推荐(0) 编辑
摘要: 问题: 最近因公司业务由传统虚拟机方式迁移至容器docker方式部署后,最近发现系统某处导出excel报表后无内容(0字节) 报错:Error: java.lang.reflect.InvocationTargetException com.alibaba.excel.exception.Excel 阅读全文
posted @ 2020-12-12 16:49 liucx 阅读(5021) 评论(0) 推荐(0) 编辑
摘要: 在Consul日常维护中,由于Consul不会自动将不可用的服务实例注销掉和移除node节点.在实际使用过程中,可能因为一些操作失误、环境变更等原因让Consul中存在一些无效实例信息,而这些实例在Consul中会长期存在,并处于断开状态。它们虽然不会影响到正常的服务消费过程,但是它们会干扰我们的监 阅读全文
posted @ 2020-11-25 15:47 liucx 阅读(5674) 评论(0) 推荐(1) 编辑
摘要: # ### 字符串的相关方法# *capitalize 字符串首字母大写 strvar = "i am a boy"# strvar = "我是一个男孩ooo" # 对于中文特殊字符无效res = strvar.capitalize()print(res) # *title 每个单词的首字母大写 ( 阅读全文
posted @ 2020-09-24 17:35 liucx 阅读(151) 评论(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 阅读(4557) 评论(0) 推荐(0) 编辑
摘要: # ### 代码块 : 用冒号作为开始,用缩进来划分相同的作用域 """作用域: 作用范围""" # 基本使用 """代码块是一个整体,在条件满足时,会一并执行,否则一并不执行""" if 10 == 10: print(1) print(2) print(3) # 注意点 """在使用代码时,要么 阅读全文
posted @ 2020-07-29 09:19 liucx 阅读(178) 评论(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 阅读(226) 评论(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 阅读(4177) 评论(0) 推荐(0) 编辑
摘要: #### 一:注释#注释:对代码的解释#注释快捷键:notepod++: ctrl + q / pychorm: ctrl + / |ctrl + z 撤销 | ctrl + y 反撤销'''代码注释原则:不用给全部代码加注释,只需要在自己觉得重要或不好理解的部分加注释即可注释可以用中文或英文,但绝 阅读全文
posted @ 2020-07-16 09:34 liucx 阅读(344) 评论(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 阅读(63851) 评论(0) 推荐(1) 编辑