Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 563 Bytes

thrift.md

File metadata and controls

22 lines (15 loc) · 563 Bytes

安装

apt-get install thrift-compiler
thrift --version

使用

官网文档有详细说明,https://github.com/apache/thrift/tree/master/tutorial#tutorial

步骤总得来讲有以下几步:

  1. 编写 xxx.thrift 文件
  2. 构建出所需要的 server and client stubs, 命令:thrift --gen php:server xxx.thrift
  3. 利用 Apache Thrift library 和 server and client stubs 文件编写 demo。

参考