1、下载最新版的比特币核心
https://bitcoin.org/en/download
2、解压缩
tar -zxvf bitcoin-0.17.1-x86_64-linux-gnu.tar.gz
3、进入bin目录
cd cd bitcoin-0.17.1/
cd /bin
4、修改存放钱包文件的路径并开始同步区块
./bitcoind --datadir=/home/service/bitcoin/data/ --daemon
5、查看当前钱包信息
./bitcoin-cli --datadir=/home/service/bitcoin/data/ getinfo
{
"deprecation-warning": "WARNING: getinfo is deprecated and will be fully removed in 0.16. Projects should transition to using getblockchaininfo, getnetworkinfo, and getwalletinfo before upgrading to 0.16",
"version": 150200,
"protocolversion": 70015,
"walletversion": 139900,
"balance": 0.00000000,
"blocks": 558714,
"timeoffset": -1,
"connections": 8,
"proxy": "",
"difficulty": 5883988430955.408,
"testnet": false,
"keypoololdest": 1547543917,
"keypoolsize": 2000,
"paytxfee": 0.00000000,
"relayfee": 0.00001000,
"errors": ""
}
6、查看同步区块高度
https://www.blockchain.com/btc/blocks