BTC节点部署

简介: BTC节点部署

BTC 节点部署

前言

官网:https://bitcoin.org

下载链接:https://bitcoin.org/en/download


下载与安装


安装依赖环境

yum install boost-devel libevent-devel openssl-devel gcc gcc-c++ qt-devel protobuf-devel qrencode-devel libtool git autoconf automake -y


安装 BerkeleyDB

下载链接:https://www.oracle.com/database/technologies/related/berkeleydb-downloads.html

mkdir -p /usr/local/apps/BerkeleyDB/db
tar -zxvf db-18.1.32.tar.gz
cd db-18.1.32
./dist/configure --enable-cxx --disable-shared --with-pic --prefix=/usr/local/apps/BerkeleyDB/db
make && make install


从源码中构建

./autogen.sh
./configure --with-incompatible-bdb


安装包

下载链接:https://bitcoin.org/en/download

下载并解压,进入解压目录


创建配置

mkdir data # /usr/local/apps/btc/bitcoin-0.18.1/data


bitcoin 的默认配置目录为 ~/.bitcoin/bitcoin.conf,填写配置如下

# This config should be placed in following path:
# ~/.bitcoin/bitcoin.conf
# [core]
# Specify a non-default location to store blockchain and other data.
datadir=/usr/local/apps/btc/bitcoin-0.18.1/data
# Set database cache size in megabytes; machines sync faster with a larger cache. Recommend setting as high as possible based upon machine's available RAM.
dbcache=10240
# Maintain a full transaction index, used by the getrawtransaction rpc call.
txindex=1
# [rpc]
# Enable Add Witness Address RPC
deprecatedrpc=addwitnessaddress
# Accept command line and JSON-RPC commands.
server=1
# Accept public REST requests.
rest=1
# Bind to given address to listen for JSON-RPC connections. This option is ignored unless -rpcallowip is also passed. Port is optional and overrides -rpcport. Use [host]:port notation for IPv6. This option can be specified multiple times. (default: 127.0.0.1 and ::1 i.e., localhost, or if -rpcallowip has been specified, 0.0.0.0 and :: i.e., all addresses)
rpcbind=0.0.0.0
rpcport=18333
rpcuser=btcuser
rpcpassword=btcpassword
# 允许访问的白名单
rpcallowip=127.0.0.1


启动

./bin/bitcoind -daemon
或者
setsid ./bin/bitcoind


目录
相关文章
|
Ubuntu Linux 网络安全
Gogs:可能是比Gitlab更好的选择
Gitlab是一个很棒的Git托管服务,几乎像GitHub一样强大。 但是,有没有能和Gitlab/Github媲美但操作更简单的项目呢?我认为 Gogs 是很好的选择。
3945 0
Gogs:可能是比Gitlab更好的选择
|
Linux 数据安全/隐私保护 Windows
【JumpServer教程】简便添加Windows资产:JumpServer堡垒机使用指南
本文是JumpServer堡垒机使用指南,介绍了如何在JumpServer中简便添加Windows资产的步骤,包括准备工作、开启Windows远程设置、在JumpServer中配置Windows资产以及授权使用。
3114 1
【JumpServer教程】简便添加Windows资产:JumpServer堡垒机使用指南
|
分布式计算 负载均衡 监控
p2p网络架构模型
P2P(Peer-to-Peer)模式是一种网络架构模型,在这种模型中,每个节点(peer)既是服务的提供者也是服务的消费者。这意味着每个参与的节点都可以直接与其他节点通信,并且可以相互提供资源和服务,例如文件共享、流媒体传输等。
489 6
|
区块链
去中心化交易所DEX开发[完整功能代码演示]
去中心化交易所DEX开发[完整功能代码演示]
|
消息中间件 存储 Cloud Native
RocketMQ从4.9.7 升级到5.3.0有什么变化?
【8月更文挑战第25天】RocketMQ从4.9.7 升级到5.3.0有什么变化?
879 4
|
运维 数据库 网络架构
详尽分享运维网络面试题101道
详尽分享运维网络面试题101道
681 0
|
jenkins 网络安全 持续交付
Jenkins Pipeline 流水线 - 上传文件 Publish over SSH 执行命令
Jenkins Pipeline 流水线 - 上传文件 Publish over SSH 执行命令
952 0
|
消息中间件 存储 Kafka
Centos7系统部署搭建Kafka集群
搭建kafka集群至少需要3台服务器(或虚拟机也可),我们提前准备好3台不同IP的服务器
1048 0
|
jenkins Java 持续交付
解决Jenkins使用Publish Over SSH插件上传失败的问题(可能原因之一)
解决Jenkins使用Publish Over SSH插件上传失败的问题(可能原因之一)
852 0
|
Java 网络安全 Maven
Maven配置国内镜像源
Maven 是一个流行的 Java 项目构建工具,它依赖于互联网上的 Maven 中央仓库来下载和管理项目依赖库。但是,由于网络原因或其他问题,有时会导致从中央仓库下载依赖库的速度变慢或者无法下载,这就会影响项目的构建效率。 通过为 Maven 配置镜像源,可以使 Maven 从镜像源下载依赖库,而不是直接从中央仓库下载。这样做的好处在于: 1. 提高下载速度:由于国内的镜像源一般都部署在国内的服务器上,所以从镜像源下载依赖库的速度要快得多,可以大大提高项目构建的效率。
3675 2