本教程适用于所有Linux系统
The curriculum applies to all Linux systems
官方下载地址:https://bitcoincore.org/en/download/,不同系统选择不同版本
Official download address: https://bitcoincore.org/en/download/, different systems select different versions
Linux系统可执行以下命令快速获取
Linux can execute the following command fast to access
wget https://bitcoincore.org/bin/bitcoin-core-0.20.1/bitcoin-0.20.1-x86_64-linux-gnu.tar.gz
解压缩
Uncompress
#解压缩文件夹
# Uncompress the folder
tar -xzvf bitcoin-0.20.1-x86_64-linux-gnu.tar.gz
#文件夹从命名
# Folder from Name
mv bitcoin-0.20.1 bitcoin
配置环境变量
Configure Environment Variables
vi ~/.bashrc
#bitcoin env
export BTCPATH=/root/bitcoin/bin
export PATH=$BTCPATH:$PATH
source ~/.bashrc
mkdir -p /btc_data
mkdir ~/.bitcoin
vi ~/.bitcoin/bitcoin.conf
datadir=/btc_data
dbcache=4096
txindex=1
irc=1
upnp=1
rpcuser=btc
rpcpassword=btc2021
daemon=1
server=1
addressindex=1
rest=1
rpcbind=0.0.0.0:8332
rpcallowip=0.0.0.0/0
deprecatedrpc=accounts
#后台运行
# Backstage running #
bitcoind -daemon
#查看区块链同步
# Look at the block chain synchronise
bitcoin-cli getblockchaininfo
注册有任何问题请添加 微信:MVIP619 拉你进入群
打开微信扫一扫
添加客服
进入交流群
发表评论