cd /home/admini

su -
useradd -r -m -d /home/bitcoin bitcoin
cd /home/
su - bitcoin
apt-get install software-properties-common
add-apt-repository ppa:bitcoin/bitcoin
apt-get update
apt-get install autoconf
apt-get install libtool
apt-get install build-essential
dpkg -l | grep pkg-config
apt-get install pkg-config
apt-get install libdb++-dev
apt install autotools-dev automake bsdmainutils curl
apt install git
git clone https://github.com/bitcoin/bitcoin.git
git checkout v0.19.1
git status
./autogen.sh
./configure --enable-wallet
apt-get install libdb4.8-dev libdb4.8++-dev
apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
apt-get install libssl-dev
apt-get install libevent-dev
./configure
make
make check && make install
which bitcoind
which bitcoin-cli
useradd -s /usr/sbin/nologin -r -m -d /home/bitcoin bitcoind
mkdir /home/bitcoin/.bitcoin
echo rpcuser=bitcoinrpc > /home/bitcoin/.bitcoin/bitcoin.conf
echo rpcpassword=JRkDy3tgCYdmCEqY1VdfdfhTswiRva >> /home/bitcoin/.bitcoin/bitcoin.conf

copier l’ancienne blockchains, deplacer le dossier blocks et relancer bitcoind

bitcoind -reindex

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée.

*