Ubuntu上安装Bitcoin Core
来源:互联网 发布:八皇后问题递归c语言 编辑:程序博客网 时间:2024/05/21 11:08
首先需要添加bitcoin的源:
sudo add-apt-repository ppa:bitcoin/bitcoin
Stable Channel of bitcoin-qt and bitcoind for Ubuntu, and their dependencies More info: https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoinPress [ENTER] to continue or ctrl-c to cancel adding it......gpg: imported: 1 (RSA: 1)OK
添加源成功之后,需要更新下源:
sudo apt-get update
安装bitcoind:
sudo apt-get install bitcoind
可以选择性的安装bitcoin-qt
,在ubuntu-service
版本上是不需要bitcoin-qt
的,如果是在ubuntu-desktop
上面想使用bitcoin-qt
的话可以选择安装:
sudo apt-get install bitcoin-qt
运行bitcoind
直接输入bitcoind
命令可以让bitcoind
在前台直接运行:
bitcoind
也可以采用后台运行的方式:
bitcoind --daemon
运行的时候我们可以使用命令查看bitcoind
的运行情况:
bitcoin-cli getinfo
{ "version": 120100, "protocolversion": 70012, "walletversion": 60000, "balance": 0.00000000, "blocks": 32, "timeoffset": 0, "connections": 6, "proxy": "", "difficulty": 1, "testnet": false, "keypoololdest": 1472539508, "keypoolsize": 101, "paytxfee": 0.00000000, "relayfee": 0.00001000, "errors": ""}
也可以直接查看debug.log
,监控当前运行情况。
进入.bitcoin目录:
cd $HOME/.bitcoin
使用tail
命令:
tail -f debug.log
区块链数据
在Linux中bitcoind的数据存在$HOME/.bitcoin
目录下,该目录下有以下的文件。
bitcoind.pid
bitcoind运行的进程文件blocks
区块链数据文件chainstate
区块链状态的数据库使用LevelDB存储db.log
数据库日志文件debug.log
运行时的日志文件wallet.dat
钱包文件
bitcoind
数据在其它平台存在的地址。
Windows
%APPDATA%Bitcoin 例如:C:UsersusernameAppDataRoamingBitcoin
Mac OSX
$HOME/Library/Application Support/Bitcoin/ 例如:/Users/username/Library/Application Support/Bitcoin
- Ubuntu上安装Bitcoin Core
- Ubuntu上编译安装Bitcoin Core
- bitcoin 在ubuntu上的安装指南
- Compile Bitcoin Core from Source on Ubuntu
- Bitcoin Core APIs
- 安装Ubuntu Core系统
- Ubuntu安装.net core
- ubuntu core 安装教程
- 安装Ubuntu Core系统
- 树莓派安装Ubuntu core
- Installing bitcoin in ubuntu
- bitcoin软件安装
- Bitcoin Core推出社交媒体平台
- Ubuntu 16.04 安装 .NET Core
- ubuntu 14.04源码编译bitcoin
- bitcoin
- Bitcoin
- Bitcoin
- LeetCode 19. Remove Nth Node From End of List
- Java笔试题解(6)
- Android屏幕适配解决方案
- iOS开发isa 指针 与 runtime 机制
- poj3087 Shuffle'm Up
- Ubuntu上安装Bitcoin Core
- java数组常见的排序——选择排序和冒泡排序
- Python学习笔记(六)— 函数
- Shell脚本——时间同步
- JAVA线程模拟火车站卖票
- 线程优先级(线程优先级)
- 5月17日云栖精选夜读:分布式大数据系统巧实现_全局数据调度管理不再难
- 网站发布一般步骤以及解决方法
- React-native or Native 获取及绑定设备唯一标识并存储到keychain