export PATH=$PATH:/usr/local/go/bin
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:$HOME/go/bin
export PATH=$PATH:/home/liyi/hitchao-go-ethereum/build/bin
设置环境变量时输入的代码
nohup ./geth --datadir="/data/gethdata" --rpc --rpcaddr=0.0.0.0 --rpcport=8545 --cache=512 --maxpeers 9999 --rpcapi="web3,eth,net,personal,db,admin" --rpccorsdomain="*" > ./geth.log &2>1
nohup /home/liyi/hitchao-go-ethereum/build/bin/geth --datadir="~/data/gethdata" --rpc --rpcaddr=0.0.0.0 --rpcport=8545 --cache=512 --maxpeers 9999 --rpcapi="web3,eth,net,personal,db,admin" --rpccorsdomain="*" > ./geth.log 2>&1
之前nohup后是./geth,现在改为了/home/liyi/hitchao-go-ethereum/build/bin/geth,这个是之前的实际文件路径
在sh start.sh之后打开geth客户端