![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
虹少侠
唯有知识不会辜负你
展开
-
centos7安装protocol buffer
centos7安装protocol buffer因为搭建go环境需要使用protoc,所以记录一下对于protoc的安装记录:是用wget下载protobuf包wget https://github.com/protocolbuffers/protobuf/releases/download/v3.10.0/protobuf-all-3.10.0.tar.gztar zvxf pr...原创 2019-10-17 10:59:20 · 997 阅读 · 0 评论 -
使用mmap遇到总线错误bus error
先简单描绘一下错误发生的场景:#define MMAP_BUFF_SIZE 4096struct Message{ int len; char data[1024]; };int fd = open("./test",O_RDWR | O_CREAT);lseek(fd,MMAP_BUFF_SIZE,SEEK_SET);Message* m ...原创 2019-03-07 14:21:35 · 5049 阅读 · 0 评论