简介
Google Protocol Buffer( 简称 Protobuf) 是Google公司内部的混合语言数据标准,目前已经正在使用的有超过48,162种报文格式定义和超过12,183个。proto文件。他们用于RPC系统和秩序数据存储系统。
Protocol Buffer是一种轻便高效的结构化数据存储格式,可以用于结构化数据串行化,或者说序列化。本人是拿他用在RPC数据交换格式。
开始安装
第一步:安装响应工具
(要求gcc版本4.8+,如果需要升级则可以参考:https://blog.csdn.net/wfx15502104112/article/details/96508940)
sudo yum install autoconf automake libtool curl make g++ unzip
第二步:下载源码包并编译安装
git clone https://github.com/protocolbuffers/protobuf