RealPath:
WebPath:
2018/08/12 10:29 (JST) 更新
システム管理 >>

起動・停止

Contents

停止状態の確認

bash
$ bitcoin-cli getblockchaininfo
error: Could not connect to the server ← ★止まってる

起動

bash
$ bitcoind -daemon
Bitcoin server starting

起動状態の確認

bash
$ bitcoin-cli getblockchaininfo
{
  "chain": "test", ← ★諸々取得できてる時点で動いてる
  "blocks": 1355927,
  "headers": 1355927,
  "bestblockhash": "0000000000005f6af60beeac16cfbaff39e4f818ccceb625ae91ac1696120311",
  "difficulty": 1,
  "mediantime": 1532807098,
  "verificationprogress": 0.9999998700840479,
  "initialblockdownload": false,
  "chainwork": "00000000000000000000000000000000000000000000007c66352b365a5a32da",
  "size_on_disk": 14511829420,
  "pruned": false,
  ....
  ....
}

ポートの確認

mainnet の場合

bash
$ telnet localhost 8333
Trying ::1...
Connected to localhost.
Escape character is '^]'.

testnet, regtest の場合

bash
$ telnet localhost 18333
Trying ::1...
Connected to localhost.
Escape character is '^]'.

停止

bash
$ bitcoin-cli stop
Bitcoin server stopping