摘要: https://cloud.tencent.com/developer/user/5908455 阅读全文
posted @ 2024-05-20 10:34 今夕何兮 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 版本信息 python版本 3.7 pip install redis==3.5.3 pip install redis-py-cluste==2.1.3 集群连接 单节点连接 通过集群里面的任意节点连接到集群,连接之后,客户端会向服务器发送cluster slots命令获取集群哈希槽的分布信息。 阅读全文
posted @ 2024-03-15 16:10 今夕何兮 阅读(60) 评论(0) 推荐(0) 编辑
摘要: > 官网解释:https://www.kernel.org/doc/html/latest/networking/ip-sysctl.html ####百度的坑: 最初百度查到关于这个参数的结果,基本上都是这种解释:该参数控制tcp四次挥手过程中,主动请求断开连接的一方处于TIME_WAIT状态的时 阅读全文
posted @ 2023-05-24 01:29 今夕何兮 阅读(835) 评论(0) 推荐(0) 编辑
摘要: 默认配置 默认情况下,mysql配置文件查找路径可通过以下命令查找 # mysqld --help --verbose|grep my.cnf/etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf MySQL会按照以上路径依次(从左到右)查找配 阅读全文
posted @ 2022-02-13 15:27 今夕何兮 阅读(3026) 评论(0) 推荐(0) 编辑
摘要: curl -XPUT -H "Content-Type: application/json" http://192.168.101.166:9200/_all/_settings -d '{"index" : {"max_result_window" : 1000000}}' 注意: 1. from 阅读全文
posted @ 2022-02-11 12:14 今夕何兮 阅读(1226) 评论(0) 推荐(0) 编辑
摘要: mongodb常用命令 1. 慢查询相关 # 设置慢查询 db.setProfilingLevel(1,200); # 查看慢查询级别 db.getProfilingLevel(); # 查询慢查询日志,此命令是针对于某一库进行设置 db.system.profile.find({ ns : 'db 阅读全文
posted @ 2022-02-11 01:13 今夕何兮 阅读(42) 评论(0) 推荐(0) 编辑
摘要: I assume the MySQL Server as followings. You should tune the variables according to your server. 32 CPU core 256G Memory SSD storage with 20000 IOPS i 阅读全文
posted @ 2022-02-10 14:09 今夕何兮 阅读(1141) 评论(0) 推荐(0) 编辑
摘要: nginx配置文件详解 1. 配置文件结构 ... #全局块 events { #events块 ... } http #http块 { ... #http全局块 server #server块 { ... #server全局块 location [PATTERN] #location块 { ... 阅读全文
posted @ 2021-06-06 10:58 今夕何兮 阅读(217) 评论(0) 推荐(1) 编辑
摘要: timeout概念 老早用nginx时就零零散散的接触这些时间,一直没静下心系统的梳理一遍,其实理解了这些时间的作用和设置,对配置tengine(nginx)线上业务的 优化有不可小觑的作用,对nginx的工作流程也会有更深的理解,目前我线上配置是服务http小文件(非视频和下载类)的,具体参数配置 阅读全文
posted @ 2021-06-06 10:17 今夕何兮 阅读(1504) 评论(0) 推荐(0) 编辑
摘要: 操作方法 打开系统CMD控制台,输入一下命令 certutil -hashfile 文件名 SHA256[加密算法:MD5|SHA1] 阅读全文
posted @ 2021-06-04 10:28 今夕何兮 阅读(610) 评论(0) 推荐(0) 编辑