首先下载geth,ubuntu地址如下
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum
windows如下
https://github.com/ethereum/go-ethereum/releases/tag/v1.4.11
(我两个都用,但是在windows下订阅不了节点,就算添加了节点也没有任何卵用,不知道为什么)
安装完成后
接下来如果你需要进行开发,比如以太币的转账之类的操作可以,可以在终端中执行如下
geth --fast --rpcapi personal,db,eth,net,web3 --rpc --rpcaddr 0.0.0.0 --rpcport 33333 --cache=512 console
(这是主链的搭建,不是任何测试网络,如有需要可加上 --rinkeby 或者 --你所想进入的私链网络
geth启动
--fast 快速默契启动
--rpcapi 指定HTTP-RPC 开启API,默认为 “eth,net,web3” 我这里因为做开发 所以全部打开,后期按需打开
--rpc 开启 HTTP-RPC 服务
--rpcaddr