上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页
摘要: print ((size_t*)quit_command._M_dataplus)[-3] https://stackoverflow.com/questions/29401095/how-do-i-access-stl-classes-like-stdstring-in-gdb-postmorte 阅读全文
posted @ 2020-09-04 19:53 stdpain 阅读(596) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/xixingzhe2/article/details/86167859 阅读全文
posted @ 2020-08-28 17:41 stdpain 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 写少读多的场景可以考虑使用DoubleBuffer https://github.com/stdpain/incubator-brpc/blob/master/src/butil/containers/doubly_buffered_data.h 阅读全文
posted @ 2020-08-28 15:32 stdpain 阅读(292) 评论(0) 推荐(0) 编辑
摘要: iostat -mx $time 阅读全文
posted @ 2020-08-20 12:42 stdpain 阅读(123) 评论(0) 推荐(0) 编辑
摘要: https://github.com/tarosky/k8s-redis-ha 更推荐这个: https://github.com/kubernetes/examples/tree/561467fb9d5f5c2126da5c500067de3c0fbd7d60/staging/storage/re 阅读全文
posted @ 2020-08-19 17:23 stdpain 阅读(1849) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/expect #trap sigwinch spawned trap { set rows [stty rows] set cols [stty columns] stty rows $rows columns $cols < $spawn_out(slave,name) } 阅读全文
posted @ 2020-08-19 14:14 stdpain 阅读(451) 评论(0) 推荐(0) 编辑
摘要: Redis Client 连接失败 查看一下 netstat -anp|grep TIME_WAIT 发现有很多TIME_WAIT 解决方法 使用连接池,复用连接 使用管道 阅读全文
posted @ 2020-08-18 17:55 stdpain 阅读(194) 评论(0) 推荐(0) 编辑
摘要: su root useradd $USER mkdir /home/users/$USER chown $USER /home/users/$USER usermod -d /home/users/$USER $USER 阅读全文
posted @ 2020-08-13 23:52 stdpain 阅读(129) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/_xiao/article/details/23289971 set solib-absolute-prefix / 设置路径映射 set substitute-path old_path new_path 阅读全文
posted @ 2020-08-13 10:10 stdpain 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 因为经常把第三方依赖装到非系统目录下,因此cmake需要使用环境变量 include_directories("$ENV{HOME}/opt/gflags/build/install/include") link_directories("$ENV{HOME}//opt/gflags/build/i 阅读全文
posted @ 2020-08-09 23:56 stdpain 阅读(8450) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页