Multiple Gravium masternodes on single VPS

sudo cp -t /usr/bin gravium-cli gravium-qt gravium-tx graviumd
cd /usr/bin
sudo chmod +x gravium*
nano ~/.graviumcore/gravium.conf
rpcuser=<user>
rpcpassword=<password>
rpcallowip=127.0.0.1
rpcport=11000
bind=<your first ip>
listen=1
server=1
daemon=1
logtimestamps=1
maxconnections=256
staking=0
externalip=<your first ip>
masternode=1
masternodeprivkey=<masternodeprivkey>
gravium-cli stop
graviumd -daemon

If you for some reason don’t want or can’t create users you can skip the user-steps and just copy .graviumcore to .graviumcore2 and run the graviumd and gravium-cli commands with the flag -datadir=~/.graviumcore2

sudo adduser gravium2
sudo usermod -a -G sudo gravium2
su gravium2
cd ~
mkdir .graviumcore
nano ~/.graviumcore/gravium.conf
rpcuser=<user>
rpcpassword=<password>
rpcallowip=127.0.0.1
rpcport=11001
bind=<your second ip>
listen=1
server=1
daemon=1
logtimestamps=1
maxconnections=256
staking=0
externalip=<your second ip>
masternode=1
masternodeprivkey=<masternodeprivkey for second node>
graviumd -daemon
gravium-cli getinfo
gravium-cli getblockcount
gravium-cli masternode status
cd ~
git clone https://github.com/Gravium/sentinel.git && cd sentinel
virtualenv ./venv
./venv/bin/pip install -r requirements.txt
crontab -e
* * * * * cd /home/gravium2/sentinel && ./venv/bin/python bin/sentinel.py >/dev/null 2>&1
SENTINEL_DEBUG=1 ./venv/bin/python bin/sentinel.py

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store