美文网首页
ubuntu16.04 bitcoin钱包安装

ubuntu16.04 bitcoin钱包安装

作者: 卡鲁卡鲁 | 来源:发表于2019-10-13 23:27 被阅读0次

    1.安装依赖包

    sudo apt-get -y install build-essential libtool autotools-dev automake autoconf pkg-config bsdmainutils python3
    sudo apt-get -y install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
    sudo apt-get -y install libssl-dev libboost-all-dev libevent-dev
    sudo apt-get -y install libdb-dev libdb++-dev
    sudo apt-get -y install libminiupnpc-dev libzmq3-dev
    sudo apt-get -y install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libqrencode-dev
    

    2.git 下载软件包

    git clone https://github.com/bitcoin/bitcoin.git
    cd bitcoin/
    ./autogen.sh
    ./configure --with-incompatible-bdb --prefix=/usr/local/bitcoin
    make
    sudo make install
    

    3.启动配置

    创建区块同步目录
    sudo mkdir -p /data/bitcoin

    创建配置文件

    vi bitcoin.conf
    
    listen=1
    server=1
    rpcuser=youuser
    rpcpassword=yourpassword
    rpcport=8332
    rpcbind=0.0.0.0
    rpcallowip=0.0.0.0/0
    

    启动

    sudo ./bitcoind -datadir=/data/bitcoin -conf=/home/ubuntu/.bitcoin/bitcoin.conf -daemon
    

    相关文章

      网友评论

          本文标题:ubuntu16.04 bitcoin钱包安装

          本文链接:https://www.haomeiwen.com/subject/lzflmctx.html