bitcoind (BTC,BCH) litecoind (LTC) ,parity(ETH,ETC)搭建,omnicored(USDT)搭建dashd(DASH)

BTC

https://bitcoin.org/en/download 下载

或者

sudo apt install software-properties-common

sudo add-apt-repository ppa:bitcoin/bitcoin

sudo apt-get update

安装bitcoind:

sudo apt-get install bitcoind

sudo apt-get install bitcoin-qt

直接输入`bitcoind`命令可以让`bitcoind`在前台直接运行:

bitcoind -h

bitcoin.conf 如下

server=1
par=1

#port=8333
txindex=1
addressindex=1
timestampindex=1
spentindex=1
#rpcport=8332
rpcuser=bitcoin
rpcpassword=btc1
uacomment=bitcore-btc

启动

bitcoind -datadir=/mnt/bitcoind-data -conf=/mnt/bitcoin.conf -daemon  -deprecatedrpc=estimatefee

查看 

 tail -f  /mnt/bitcoind-data/debug.log

BCH

sudo apt-get install software-properties-common

sudo add-apt-repository ppa:bitcoin-abc/ppa

sudo apt-get update

sudo apt-get install bitcoind bitcoin-qt

bitcoin.conf 如下

server=1
par=1

#port=8333
txindex=1
addressindex=1
timestampindex=1
spentindex=1
#rpcport=8332
rpcuser=bitcoin
rpcpassword=bch1
uacomment=bitcore-bch

启动

bitcoind -datadir=/mnt/bitcoind-data -conf=/mnt/bitcoin.conf -daemon  -deprecatedrpc=estimatefee

查看 

 tail -f  /mnt/bitcoind-data/debug.log

LTC

https://litecoin.org/

官网下载最新 litecoin-0.16.3-x86_64-linux-gnu.tar.gz

解压到目录  /litecoin-0.16.3/

litecoin.conf

server=1
par=1

port = 9333

txindex=1
addressindex=1
timestampindex=1
spentindex=1

whitelist=192.168.0.0/16
rpcallowip=192.168.0.0/16
rpcport=9332
rpcuser=litecoin
rpcpassword=ltc1
uacomment=litecoin-1

cd  /litecoin-0.16.3/bin

启动

./litecoind -datadir=/mnt/litecoind-data -conf=/mnt/litecoin.conf -daemon  -deprecatedrpc=estimatefee

查看 

 tail -f  /mnt/litecoind-data/debug.log

ETH

下载最新稳定版本 https://github.com/paritytech/parity-ethereum/releases

https://releases.parity.io/v1.11.7/x86_64-unknown-linux-gnu/parity_1.11.7_ubuntu_amd64.deb

   sudo dpkg -i parity_1.11.7_ubuntu_amd64.deb

nohup parity --pruning fast --tracing on --fat-db on  --base-path /mnt/paritydb/ --cache-size 2048 >> /mnt/parity.log 2>&1 &

ETC

nohup parity --chain classic --pruning fast --tracing on --fat-db on  --base-path /mnt/paritydb/ --cache-size 2048 >> /mnt/parity.log 2>&1 &

USDT

https://github.com/OmniLayer/omnicore/releases

cd /mnt/usdt

wget https://github.com/OmniLayer/omnicore/releases/download/v0.4.0/omnicore-0.4.0-x86_64-linux-gnu.tar.gz

 

tar  -zxvf   omnicore-0.4.0-x86_64-linux-gnu.tar.gz

配置文件

cd /home/changliang/omnicore-0.4.0/

vi omnicored.conf

server=1

par=1

txindex=1

addressindex=1

timestampindex=1

spentindex=1

rpcuser=rpcuser

rpcpassword=rpcpassword

rpcport=8332

uacomment=usdt1

startclean=0

dbcache=16384

 

启动

cd /home/changliang/omnicore-0.4.0/bin

./omnicored -datadir=/mnt/usdt -conf=/mnt/usdt/omnicore-0.4.0/omnicored.conf  -deprecatedrpc=estimatefee 

-startclean=0 -overrideforcedshutdown=1

 

查看

tail -f /mnt/usdt/debug.log

杀死进程一定要用

omnicored-cli -conf="/omnicore-0.4.0/omnicored.conf " stop

否则会出现RPC调用失败

error code: -28

error message:

Starting network threads...

{"result":null,"error":{"code":-28,"message":"Starting network threads..."},"id":"1"}

 

error code: -28

error message:

Still scanning.. at block 560497 of 567101.

Progress: 6.47 % (about 36:13 minutes remaining)

 

DASH

 

https://github.com/dashpay/dash/releases

server=1

par=1

rpcuser=dash

rpcpassword=dash1

rpcthreads=5000

txindex=1

addressindex=1

timestampindex=1

spentindex=1

uacomment=dash1

 

/dashcore-0.14.0/bin/dashd -datadir=/data/dashd-data -conf=/data/dashd-data/dashd.conf -daemon -deprecatedrpc=estimatefee 

 

 

 

 

你可能感兴趣的:(区块链)