πŸ’‘ Useful commands

βš™οΈ Service Commands

Run node (use in screen mode)

curl -sL1 https://nubit.sh | bash

Check Logs (join the session 'nubit')

screen -r nubit

View all screen session

screen -ls

Force exit session 'nubit' (does not stop the session itself)

screen -d nubit

Sometimes when trying to join, a situation arises that you are told that you are already connected, in this case use the above command

Stop node (Force closes the screen 'nubit' session thereby stopping the node)

screen -S nubit -X quit

Restart node

screen -S nubit -X quit
screen -S nubit
curl -sL1 https://nubit.sh | bash

Delete node

cd $HOME
rm -rf nubit-node
rm -rf .nubit*

Review your mnemonic phrase

cat $HOME/nubit-node/mnemonic.txt

Open the file with the mnemonic phrase, if necessary

nano $HOME/nubit-node/mnemonic.txt

To save changes after making, use the key combination Ctrl + X , and press Y

See which ports are occupied by 'nubit'

sudo netstat -tulpn | grep nubit

to use the command, you need to install the "net-tools" utility sudo apt install net-tools

OPTIONAL: Change Ports

change the ports to others (21657,21658) in case the standard ports (26657,26658) are occupied by another process

# Change port 26657 to 21657
sed -i 's/Port = "26657"/Port = "21657"/g' $HOME/.nubit-light-nubit-alphatestnet-1/config.toml

# Change port 26658 to 21658
sed -i 's/Port = "26658"/Port = "21658"/g' $HOME/.nubit-light-nubit-alphatestnet-1/config.toml

# Change port 9090 to 2190
sed -i 's/GRPCPort = "9090"/GRPCPort = "2190"/g' $HOME/.nubit-light-nubit-alphatestnet-1/config.toml

After changing the ports, restart the node, use the command "Restart node" above

Remove node

rm -rf ~/nubit-node
rm -rf ~/.nubit*

Last updated