windows下: thrift.exe --gen <language> <Thrift filename> ubuntu下: thrift --gen <language> <Thrift filename>