摘要: 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 阅读(2040) 评论(0) 推荐(0) 编辑
摘要: [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 阅读(708) 评论(0) 推荐(0) 编辑
摘要: 相关工具 下载源码 编译安装protobuf autogen.sh里需要下载Google Code的代码,需要保障其能被访问 编译安装grpc 问题: 解决办法: 测试C++ Demo 问题: 解决办法: /usr/local/bin/protoc --cpp_out=./ examples.pro 阅读全文
posted @ 2018-10-31 19:46 gavinhe 阅读(2123) 评论(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 阅读(165) 评论(0) 推荐(0) 编辑
摘要: CMakeList 阅读全文
posted @ 2018-10-07 09:56 gavinhe 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 初始化git仓库: mkdir test1cd test1git test1 文件到Git仓库,分两步: 使用命令git add <file>,注意,可反复多次使用,添加多个文件;命令git commit -m <message>,完成。 查看状态: git status 查看差异: git dif 阅读全文
posted @ 2018-10-05 15:56 gavinhe 阅读(97) 评论(0) 推荐(0) 编辑
摘要: # 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 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 待完成 阅读全文
posted @ 2018-09-30 21:08 gavinhe 阅读(263) 评论(0) 推荐(0) 编辑
摘要: std::function是函数模板类(是一个类);std::bind是函数模板(是一个函数); 有的人呢,std::function是模板类,“函数”这两个字都不敢加,我都不知道是为什么,我要把它加上,如果我没有意识到加上就是错误的话,您可以提示我!std::function,std::bind在 阅读全文
posted @ 2018-09-30 12:04 gavinhe 阅读(48696) 评论(1) 推荐(0) 编辑