페이퍼클립 정보

bitcoind 구동

BLOCKCHAIN2019. 5. 17. 14:08

bitcoin 블록체인의 체인데이터를 동기화 하기 위해 bitcoind를 실행합니다.

 

bitcoind가 설치된 디렉터리에서 ./bitcoind 혹은 스타드 쉘을 작성해서 실행하면 됩니다.

스타트 쉘은 EOS BP 중 하나인 CryptoLions 깃헙 자료를 참고로 만들었습니다. https://github.com/CryptoLions/scripts/blob/master/start.sh

  !/bin/bash
    DATADIR="bitcoind가 적치된 디렉터리 위치"

    #stop bitcoind
    $DATADIR/stop.sh

    #start bitcoind
    echo -e "Starting Bitcoind.. \n";
    $DATADIR/bitcoind "$@" > $DATADIR/stdout.txt 2> $DATADIR/stderr.txt & echo $! > $DATADIR/bitcoind.pid

'BLOCKCHAIN' 카테고리의 다른 글

bitcoin.conf (for rpc)  (0) 2019.05.15