4.1.1 Start the Master and Gateway
On your computer, download the source code from github as below:
git clone -b release0.4 http://github.com/wukong-m2m/wukong-darjeeling
Build infuser
cd <path_of_source_code>/wukong-darjeeling/src/infuser/ gradle
Copy the configuration file for Master
cd <path_of_source_code>/wukong-darjeeling/wukong/config/ cp master.cfg.dist master.cfg
Run the Master
cd <path_of_source_code>/wukong-darjeeling/wukong/master/ python master_server.py
On the computer, open a new terminal to copy the configuration file for gateway program
cd <path_of_source_code>/wukong-darjeeling/wukong/gateway/ cp gtwconfig.py.dist gtwconfig.py
Configure gtwconfig.py
# Use ifconfig command to check the network information. ifconfig
vim gtwconfig.py # Change MASTER_IP to the IP address of the Master. # Change TRANSPORT_INTERFACE_ADDR according to yout network interface above.
Run the gateway program
cd <path_of_source_code>/wukong-darjeeling/wukong/gateway/ python start_gateway.py