I am really sorry, please teach.Please tell me the procedure for installing bitcoin full node in CUI on CentOS.Currently I installed using the following procedure, but I got an error in RPC authentication.
1.$ sudo yum install wget
2.$ sudo wget https://bitcoin.org/bin/bitcoin-core-0.17.1/bitcoin-0.17.1-x86_64-linux-gnu.tar.gz
3.$ sudo wget https://bitcoin.org/bin/bitcoin-core-0.17.1/SHA256SUMS.asc
4.$ sudo wget https://bitcoin.org/laanwj-releases.asc
5.$ sudo gpg --import laanwj-releases.asc
6.$ sudo tar -zxvf bitcoin-0.17.1-x86_64-linux-gnu.tar.gz
7.$ sudo install -m 0755 -o USER_NAME -g root -t /usr/local/bin bitcoin-0.17.1/bin/*
8.$ mkdir ~/.bitcoin
9.$ vi ~/.bitcoin/bitcoin.conf
- Enter the following with vi and save.
mainnet = 1txindex = 1server = 1rest = 1rpcuser = arpcpassword = arpcport = 8332
11.$ cd /DATA_DIR
12.$ sudo mkdir bitcoin
13.$ sudo chmod -R 777 bitcoin/
14.$ bitcoind -daemon -datadir=/DATA_DIR/bitcoin -conf=/.bitcoin/bitcoin.conf
Bitcoin server starting
15.$ bitcoin-cli getbalance
After this, the following URL error will occur.error: Authorization failed: Incorrect rpcuser or rpcpassword
error: Authorization failed: Incorrect rpcuser or rpcpassword
Which procedure is wrong and how do I fix it?I am really sorry, please teach.