开发环境搭建
Solidity
强烈建议新手使用Browser-Solidity来进行开发。Browser-Solidity是一个基于浏览器的Solidity,就可以不用安装Solidity.
geth 安装
ubuntu下geth的安装:
sudo apt-get install software-properties-common sudo add-apt-repository -y ppa:ethereum/ethereum sudo apt-get update sudo apt-get install ethereum
安装完以后,就是把geth控制台启动。
启动环境
geth是一个以太坊客户端,现在利用geth启动一个以太坊(开发者)网络节点。
geth --datadir testNet --dev console 2 >> test.log
执行命名后,会进入geth控制台,这时光标停在一个向右的箭头处,如下所示:
Welcome to the Geth JavaScript console! instance: Geth/v1.8.10-stable-eae63c51/linux-amd64/go1.10 coinbase: 0xe9e4b2540e38f87285f63d9602dcd5f36668d648 at block: 0 (Thu, 01 Jan 1970 08:00:00 CST) datadir: /home/zhongxianfeng/testNet modules: admin:1.0 clique: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
命令参数说明: