会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
gavinhe的知识库
首页
新随笔
联系
管理
上一页
1
2
2018年11月3日
在centos7部署etcd v3的c++客户端
摘要: 1. wget -c https://cmake.org/files/v3.11/cmake-3.11.2.tar.gz 2.https://github.com/Microsoft/cpprestsdk/wiki/How-to-build-for-Linux submodule update --
阅读全文
posted @ 2018-11-03 18:42 gavinhe
阅读(2110)
评论(0)
推荐(0)
2018年11月1日
Linux下挂载LVM遇到卷组同名的解决方法
摘要: [root@locallhost ~]# pvs PV VG Fmt Attr PSize PFree /dev/hda2 VolGroup00 lvm2 a- 74.41G 0 /dev/sda2 VolGroup00 lvm2 a- 232.78G 0 hda2是新系统盘74G多,sda2是老数
阅读全文
posted @ 2018-11-01 10:33 gavinhe
阅读(854)
评论(0)
推荐(0)
2018年10月31日
搭建grpc/protobuf开发环境
摘要: 相关工具 下载源码 编译安装protobuf autogen.sh里需要下载Google Code的代码,需要保障其能被访问 编译安装grpc 问题: 解决办法: 测试C++ Demo 问题: 解决办法: /usr/local/bin/protoc --cpp_out=./ examples.pro
阅读全文
posted @ 2018-10-31 19:46 gavinhe
阅读(2161)
评论(0)
推荐(0)
性能分析
摘要: 1. perf record -e cycles -a -p 21028perf report 2. perf top 3. perf top -p 21028 4. 以线程维度查看cpu使用率 top -d 1 -H cmd: perf record -e cpu-clock -g -p 2102
阅读全文
posted @ 2018-10-31 14:46 gavinhe
阅读(171)
评论(0)
推荐(0)
2018年10月7日
使用CMake
摘要: CMakeList
阅读全文
posted @ 2018-10-07 09:56 gavinhe
阅读(68)
评论(0)
推荐(0)
2018年10月5日
git使用
摘要: 初始化git仓库: mkdir test1cd test1git test1 文件到Git仓库,分两步: 使用命令git add <file>,注意,可反复多次使用,添加多个文件;命令git commit -m <message>,完成。 查看状态: git status 查看差异: git dif
阅读全文
posted @ 2018-10-05 15:56 gavinhe
阅读(104)
评论(0)
推荐(0)
2018年10月4日
安装libevent
摘要: # Install packages $ sudo apt-get update && sudo apt-get install build-essential libssl-dev cmake -y # Install Libevent $ wget https://github.com/libe
阅读全文
posted @ 2018-10-04 16:05 gavinhe
阅读(408)
评论(0)
推荐(0)
2018年9月30日
C++11 之 右值引用
摘要: 待完成
阅读全文
posted @ 2018-09-30 21:08 gavinhe
阅读(269)
评论(0)
推荐(0)
C++11 之 std::function
摘要: std::function是函数模板类(是一个类);std::bind是函数模板(是一个函数); 有的人呢,std::function是模板类,“函数”这两个字都不敢加,我都不知道是为什么,我要把它加上,如果我没有意识到加上就是错误的话,您可以提示我!std::function,std::bind在
阅读全文
posted @ 2018-09-30 12:04 gavinhe
阅读(48830)
评论(1)
推荐(0)
上一页
1
2
公告