Install multiple masternodes on the same vps ( the vps must have an IP for every masternode)
Install 1.putty and 2. winscp
follow the guide for single masternode:
https://docs.google.com/document/d/12HlCLHVMhxgu0jMewd4e48w3NQ5pdRLPmPb0ZhPG3dw/edit#when you get to this part in the guide:
"cd
mkdir .wavicore
nano .wavicore/wavi.conf
"
instead of creating ".wavicore" use winscp (easier) or create in putty "wavi01, wavi02......" like this:
"cd ..
mkdir wavi01
nano wavi01/wavi.conf
"
Now you should have in your user directory (mine is root) like this:
"
wavi
wavi01
wavi02
wavi03
"
wavi directory contains "wavid" file
the others contain the wavi.conf you just made with nano or winscp
my wavi.conf files are like this:
"
#mnXX
rpcuser=mnXX
rpcpassword=XXXXXXX
rpcport=99XX
rpcallowip=127.0.0.1
externalip=XXX.XXX.XXX.XXX:9983
bind=XXX.XXX.XXX.XXX
masternode=1
masternodeprivkey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
maxconnections=25
addnode=80.209.239.239
addnode=185.81.164.56
addnode=89.40.11.157
addnode=94.176.238.101
"
change the "X" !!!
rpc user must be different for each conf
rpcpassword can be the same for all
rpcport must be different for each masternode and different from 9983 ( use 9984,9985...etc)
externalip and bind = masternode ip, one of the ip's you have on the vps
masternodeprivatekey is the one you generate in the debug console, the same one you put in masternode.conf on windows wallet
start your masternode on the vps from putty with command:
/root/wavi/wavid -datadir=/root/wavi01 --daemon
Note that my path to the directories wavi and wavi01 wavi02... is /root . Put your own path
check if it's running in putty with:
ps aux --sort -rss
let the mn sync for 1/2 to 1h
configure your windows wallet masternodes.conf like explained in the tutorial for single masternode, one line for each masternode
mn01 IP:9983 masternodekey output
mn02 IP:9983 masternodekey output
restart windows wallet and then start masternodes from windows wallet.
you can also put the start command in /etc/rc.local in vps just in case vps restarts so the masternodes start at restart. If vps stays offline more than 1h masternodes need restart from windows wallet.
/etc/rc.local:
/root/wavi/wavid -datadir=/root/wavi01 --daemon
/root/wavi/wavid -datadir=/root/wavi02 --daemon
/root/wavi/wavid -datadir=/root/wavi03 --daemon
/root/wavi/wavid -datadir=/root/wavi04 --daemon