$ ./build/bin/geth --datadir=~/Library/Ethereum/privatechain/chaindata/ init ~/Library/Ethereum/privatechain/genesis.jsonINFO [03-11|18:45:18] Maximum peer count ETH=25 LES=0 total=25 INFO [03-11|18:45:18] Allocated cache and file handles database=/Users/zhenbing/Library/Ethereum/privatechain/chaindata/geth/chaindata cache=16 handles=16 INFO [03-11|18:45:18] Writing custom genesis block INFO [03-11|18:45:18] Persisted trie from memory database nodes=0 size=0.00B time=7.283µs gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B INFO [03-11|18:45:18] Successfully wrote genesis state database=chaindata hash=2fb1a7…f0181a INFO [03-11|18:45:18] Allocated cache and file handles database=/Users/zhenbing/Library/Ethereum/privatechain/chaindata/geth/lightchaindata cache=16 handles=16 INFO [03-11|18:45:18] Writing custom genesis block INFO [03-11|18:45:18] Persisted trie from memory database nodes=0 size=0.00B time=1.467µs gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B INFO [03-11|18:45:18] Successfully wrote genesis state database=lightchaindata hash=2fb1a7…f0181a$ ./build/bin/geth --datadir=~/Library/Ethereum/privatechain/chaindata/$ open -a /Applications/Mist.app --args --rpcport "8001" --rpc <node path>/geth.ipc$ open -a /Applications/Mist.app --args --rpcport "8001" --rpc ~/Library/Ethereum/privatechain/chaindata/geth.ipc启动console$ ./build/bin/geth attach ipc://Users/zhenbing/Library/Ethereum/privatechain/chaindata/geth.ipc
Solidity创建以太坊智能合约(一)
最新推荐文章于 2024-03-18 15:32:34 发布
本文记录了使用Geth客户端初始化并启动以太坊私有链的过程,包括配置数据目录、设置Genesis创世区块、启动Mist客户端及连接到私有链等步骤。
&spm=1001.2101.3001.5002&articleId=79519413&d=1&t=3&u=1d2ea86055e143eaa4f866c62720f1ff)
3318

被折叠的 条评论
为什么被折叠?



