知乎专栏 | 多维度架构 |
--verbosity 日志输出级别控制
geth --verbosity 0 console
日志输出到文件中。
geth --networkid 123456 --rpc --rpcaddr="0.0.0.0" --rpccorsdomain "*" 2>> /tmp/geth.log
后台运行
neo@netkiller ~ % geth --networkid 123456 --rpc --rpcaddr="0.0.0.0" --rpccorsdomain "*" 2>> /tmp/geth.log & [1] 30075 neo@netkiller ~ % tail -f /tmp/geth.log INFO [02-02|21:18:59] Got interrupt, shutting down... INFO [02-02|21:18:59] HTTP endpoint closed: http://0.0.0.0:8545 INFO [02-02|21:18:59] IPC endpoint closed: /home/neo/.ethereum/geth.ipc INFO [02-02|21:18:59] Blockchain manager stopped INFO [02-02|21:18:59] Stopping Ethereum protocol INFO [02-02|21:18:59] Ethereum protocol stopped INFO [02-02|21:18:59] Transaction pool stopped INFO [02-02|21:18:59] Database closed database=/home/neo/.ethereum/geth/chaindata INFO [02-02|21:18:59] Mapped network port proto=tcp extport=30303 intport=30303 interface="UPNP IGDv1-IP1" WARN [02-02|21:19:00] Already shutting down, interrupt more to panic. times=9