Download binary¶
Download binary file genaccountfrom section “Binary installing and updating”,Select the corresponding . Zip according to the platform you use, extract the . Zip file to get the genaccount and configuration file config.json.
Modify config¶
The second step is to modify config.json. According to the number of input deployment nodes, add the following contents: name node; IP address corresponding to IP node; P2P discovery port when connecting nodes; password to generate the local private key. example:
[ {
"name": "dreptest1",
"ip": "192.168.1.10",
"port": 55555,
"password": "123"
},
{
"name": "dreptest2",
"ip": "192.168.1.20",
"port": 55555,
"password": "123"
},
{
"name": "dreptest4",
"ip": "192.168.1.30",
"port": 55555,
"password": "123"
},
{
"name": "dreptest5",
"ip": "192.168.1.40",
"port": 55555,
"password": "123"
}
]
Genesis config¶
Put genaccount and config.json in the same directory, run. / genaccount and generate the corresponding configuration file. Copy the configuration file corresponding to the node name to the default working directory of each node.
linux for example:
copy config.json drepnode keystore to ~/.drep or mkdir configDir and copy config.json drepnode keystore to configDir
Run¶
when config files in ~/.drep
drep ./drep
or config files in configDir
drep --homedir configDir