I've installed bitcoin-cli from here
I run the bitcoin core on Ubuntu 20.04 (AWS EC2).
mac-os also experiences similar problems.
Ubuntu 20.04 screen capture for the error messages
The commands I've ran :
Installation on Linux (Ubuntu 20.04) • Download and extract the package
$ wget https://bitcoin.org/bin/bitcoin-core-22.0/bitcoin-22.0-x86_64-linux-gnu.tar.gz
$ tar -xzf bitcoin-22.0-x86_64-linux-gnu.tar.gz
• Installation
$ cd bitcoin-22.0
$ sudo install -m 0755 -o root -g root -t /usr/local/bin bitcoin-22.0/bin/*
• Start a node
$ bitcoind -testnet -daemon
Check blockchain status
$ bitcoin-cli -testnet getblockchaininfo
After I started a node, and i try to run some bitcoin-cli-testnet commands , the following error comes :
error: timeout on transient error: Could not connect to the server 127.0.0.1:8332
sudo netstat -tulpn