This post is from a low-reputation account and contains an unverified outbound link. Be cautious before clicking external links.

CentOS7 QTUM configuration, run

Words
133
Reading
1 min
Listen
Play
9y

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"}
CentOS7 QTUM configuration, run | Ecency