Overview
Thrift was originally developed by Facebook and later submitted to the Apache Foundation as an open source project. At that time, facebook developed and used it to solve the transmission and communication of large amounts of data between systems in the system and the different language environments between systems required cross-platform features , so Thrift supports cross-language, such as C++, Java , Python , PHP , Ruby, Erlang, Perl, Haskell, C#, Cocoa, JavaScript , Node.js , Smalltalk, and OCaml are all supported. Thrift is a typical CS structure, and the client and server can be developed in different languages. Since the client and the server can be developed in different languages, there must be an intermediate language to associate the language of the client and the server. Yes, this language is IDL (Interface Description Language).
Prepare
- thrift-0.9.3.tar.gz download address: http://archive.apache.org/dist/thrift/0.9.3/
- thrift-0.9.3.exe download address: http://archive.apache.org/dist/thrift/0.9.3/
local installation
1. Create a new Thtift folder in the C drive, rename the downloaded thrift-0.9.1.exe to thrift.exe and put it in the Thtift folder
2. Configure environment variables, as shown in the figure
3. Next , test whether the environment variables of thrift are installed correctly, Ctrl+R input cmd to open the DOS window, and input "thrift -version" in the window