压缩包下载:https://github.com/protocolbuffers/protobuf/releases

配置环境变量:

PROTOCBUF_HOME   安装目录

新增path

%PROTOCBUF_HOME%\bin

CMD测试:

protoc回车: