上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要: MongoDB官方文档提供了版本升级的说明,本文只介绍3.0==>3.2==>3.4==>3.6==>4.0==>4.2之间的升级文档,其他版本之间的暂不添加,可自行到官网搜索。 注意:MongoDB的升级路径必须是按偶数版本循序渐进的(偶数版本一般是稳定版本)。不能直接跨偶数版本的由3.2升级至3 阅读全文
posted @ 2021-11-10 12:01 realcp1018 阅读(3151) 评论(0) 推荐(0) 编辑
摘要: log - The Go Programming Language (golang.org) import ( "log" ) func main() { log.Print("Logging in Go!") } log模块的Fatal与Panic开头的function都会直接终止程序运行(os. 阅读全文
posted @ 2021-09-03 11:18 realcp1018 阅读(304) 评论(0) 推荐(1) 编辑
摘要: Python支持多线程,但是由于GIL的限制并不能无限制的开启子线程。 通过semaphore我们可以控制子线程对于共享资源的访问,即可以阻塞一些子线程直到有空余的semaphore资源,但是并不能实际限制子线程数。 当我们需要开启成千上万个子线程时,很多时候并不希望这些子线程同时执行(可能受限于系 阅读全文
posted @ 2021-07-15 14:52 realcp1018 阅读(632) 评论(0) 推荐(2) 编辑
摘要: yaml与toml是当前流行度较高的两种配置文件类型,其解析方式也非常类似,因此本文将他们合在一起讲。 go-yaml/yaml: YAML support for the Go language. (github.com) BurntSushi/toml: TOML parser for Gola 阅读全文
posted @ 2021-06-08 15:52 realcp1018 阅读(2643) 评论(0) 推荐(0) 编辑
摘要: Ansible通过jinja2模块对后缀为.j2的文件进行jinja模板渲染,某一次在引用一个类似python dict的配置文件变量时报出了如上错误。 这里直接参考一个ansible github issue中的示例进行解释: "AnsibleUndefinedVariable: 'unicode 阅读全文
posted @ 2021-02-23 16:16 realcp1018 阅读(2320) 评论(0) 推荐(0) 编辑
摘要: 关于run_once和when: when Conditional expression, determines if an iteration of a task is run or not. run_once Boolean that will bypass the host loop, for 阅读全文
posted @ 2021-02-23 15:06 realcp1018 阅读(1396) 评论(0) 推荐(0) 编辑
摘要: 为什么要写这篇笔记? TiDB自3.0.8版本开始默认使用悲观事务模型(只限新建集群,从之前的版本升级上来的默认还是使用乐观事务模式)。 事务模型影响着数据库高并发场景下的写入性能并且关系到数据的完整性,如果不了解其中的差异那么在面对事务冲突引发的问题时就会比较盲目。 很多新人(包括我在内)在学习T 阅读全文
posted @ 2021-01-22 15:44 realcp1018 阅读(1815) 评论(0) 推荐(0) 编辑
摘要: https://docs.python.org/3/library/os.html https://docs.python.org/3/library/subprocess.html subprocess是对os.system的一个改进型模块,建议实际中使用subprocess模块内的命令来执行系统 阅读全文
posted @ 2020-04-15 12:32 realcp1018 阅读(1000) 评论(0) 推荐(0) 编辑
摘要: FTP server默认的端口号为21,20端口用于数据传输。 本文参考地址:https://docs.python.org/3.6/library/ftplib.html 1. ftplib里包含FTP和FTP_TLS两个class,后者是封装了TLS安全传输协议的FTP,本文不多描述,查看官网即 阅读全文
posted @ 2020-04-15 11:57 realcp1018 阅读(2470) 评论(0) 推荐(0) 编辑
摘要: https://dev.mysql.com/doc/refman/5.7/en/innodb-deadlocks.html 什么是mysql的死锁? A deadlock is a situation where different transactions are unable to procee 阅读全文
posted @ 2019-12-19 12:55 realcp1018 阅读(1710) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 12 下一页