Windows系统---打开cmd命令行
1.初始化(首先有创世文件)
geth init "D:\Geth\1_test\genesis.json"
文件内容可自己创建(新建TXT--粘贴以下内容---后缀改为json即可)
{ "config": { "chainId": 18, "homesteadBlock": 0, "eip150Block": 0, "eip155Block": 0, "eip158Block": 0 }, "alloc" : {}, "coinbase" : "0x0000000000000000000000000000000000000000", "difficulty" : "0x2", "extraData" : "", "gasLimit" : "0xffffffff", "nonce" : "0x0000000000000042", "mixhash" : "0x0000000000000000000000000000000000000000000000000000000000000000", "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", "timestamp" : "0x00" }