BTC搭建

BTC

下载Bitcoin Core

Linux x64:

wget https://bitcoin.org/bin/bitcoin-core-0.16.0/bitcoin-0.16.0-x86_64-linux-gnu.tar.gz

其他版本下载

tar -xzvf bitcoin-0.16.0-x86_64-linux-gnu.tar.gz #解压
sudo cp bitcoin-0.16.0/lib/* /lib # 拷贝依赖库至本地
cd bitcoin-0.16.0/bin
./bitcoind # 初次启动生成 ~/.bitcoin/ 文件夹

编写配置文件

vim ~/.bitcoin/bitcoin.conf

配置文件说明文档

#监听模式,默认启动
listen=1  
#允许bitcoin接收JSON-RPC
server=1  
#RPC用户名
rpcuser=bitcoin 
#RPC密码
rpcpassword=MeVz4mcTYZgvY4fT3bECaf8YkWKYxdhhZ1 
#RPC端口
rpcport=8888
#允许RPC访问ip
rpcallowip=127.0.0.1

启动服务

编写启动脚本

vim start_bitcoin.sh
nohup ./bitcoind &

注: 数据默认存放位置~/.bitcoin/,如需修改添加启动参数--datadir=/path

0

评论3

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #3
    This design is incredible! You certainly know how to keep a reader amused. Between your wit and your videos, I was almost moved to start my own blog (well, almost...HaHa!) Wonderful job. I really loved what you had to say, and more than that, how you presented it. Too cool!
  2. #2
    Greate post. Keep writing such kind of info on your page. Im really impressed by your site. Hi there, You've performed a great job. I'll certainly digg it and for my part recommend to my friends. I'm sure they'll be benefited from this site.
    유로247주소2020-07-07 13:53:12 回复
  3. #1
    Having read this I thought it was very enlightening. I appreciate you taking the time and energy to put this content together. I once again find myself spending way too much time both reading and commenting. But so what, it was still worthwhile!
    유로247코드2020-07-09 22:33:57 回复
没有账号? 忘记密码?