CentOS7 QTUM configuration, run

in #qtum7 years ago (edited)

CentOS + QTUM configuration, run

install info

core folder : /data/coin/qtum/src
data folder : /data/coin/qtum

setting (qtum.conf)

if don't exist conf file then make

testnet = 1
rpcuser=test1
rpcpassword=your password
rpcport=15338
rpcallowip=127.0.0.1
rpcallowip=xxx.xxx.xx.x

run deamon

/data/coin/qtum/src/qtumd -datadir=/data/coin/qtum

process check, port check

[root@localhost src]#ps -ef | grep qtumd
[root@localhost src]#netstat -ant | grep 15338

run check

[root@localhost src]#./qtum-cli help
if error : Could not locate RPC credentials. No authentication cookie could be found, and no rpcpassword is set in the configuration file (/root/.qtum/qtum.conf)

if error, then do this

[root@localhost src]#./qtum-cli -rpccookiefile=../rpccookiefile -conf=../qtum.conf -rpcport=15338 -rpcuser=test1 -rpcpassword=yourpassword getbalance help

excute json rpc

[root@localhost src]#curl --user test1:yourpassword --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbalance", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:15338/
[root@localhost src]# {"result":0.00000000,"error":null,"id":"curltest"}
Sort:  

Congratulations @rainboxer7! You received a personal award!

1 Year on Steemit

Click here to view your Board

Do not miss the last post from @steemitboard:

SteemWhales has officially moved to SteemitBoard Ranking
SteemitBoard - Witness Update

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @rainboxer7! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.20
TRX 0.25
JST 0.038
BTC 97340.58
ETH 3390.06
USDT 1.00
SBD 3.10