First, first install Geth CLI environment sudo apt-get install Geth, this is very important
Second, download the source code
git clone https://github.com/ethereum/go-ethereum
Thirdly, environment-dependent
Note: (important) First configure the Go language development environment with this link: https://github.com/ethereum/go-ethereum/wiki/Installing-Go#ubuntu-1404
Ethereum Go is a compiler that uses the go language and requires go and C
sudo apt-get install-y build-essential Golang
CD Go-ethereum make
Geth
Last input:
Build/bin/geth--datadir "~/ethdev"--dev
Start the client
And then another terminal input
Geth--dev Console 2>> file_to_log_output
Output
Welcome to the Geth JavaScript console!
instance:geth/v1.5.7-stable-da2a22c3/linux/go1.7.3
modules:admin:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 shh:1.0 txpool:1.0 web3:1.0
>
That is the success
And then we can do the Ethereum command.
You can also use Build/bin/geth--identity "Secbro etherum"--rpc--rpccorsdomain "*"--datadir "/home/zero/eth/chain"--port "30303 "--rpcapi" DB,ETH,NET,WEB3 "--networkid 95518 console--dev Create private link, Genesis block
Finally configure the Go locale to refer to my blog