How to upgrade your NXT node guide.Step 1) Log in to your node using Putty (user 'root' and pass that your received in the welcome email from your VPS company).
Step 2) Enter the following commands in the terminal:
1) 'top' command, it will show a line similar to this for 'java' process:
2973 root 20 0 1166m 428m 10m S 0.0 41.8 9:57.51 java
2973 is your process ID.
press 'q' to exit top;
2) kill -9 2973 (kills the java process, enter your 'java' process ID number instead of 2973).
3) cd (switch to your home directory);
4) rm nxt.zip (delete the old nxt.zip file);
4a) rm -rf /root/nxt.old (this removes the old nxt working directory if it's not the first upgrade you do);
5) mv nxt nxt.old (rename the old nxt working directory);
6) wget
http://download.nxtcrypto.org/nxt-client-0.8.9.zip7) unzip nxt-client-0.8.9.zip
8 ) cat ~/nxt.old/webapps/root/WEB-INF/web.xml
(this lists the contents of the old config file, copy-paste your myAddress and myHallmark parameters from it into a text file on your PC, if you hadn't saved them earlier.
9) nano conf/nxt-default.properties
a) in the section ###PEER NETWORKING ###, find the following lines:
put IP address you got from the host.
It should look like:
nxt.myAddress=x.x.x.x
b)
if you use a hallmark on your node, put your hallmark there (make sure no whitespace character is left in it when you copy-paste it)
press CTRL+X and then Y to save the file.
10) cd ~/nxt
11) nano run.sh
a) If your VPS has 512 MB RAM, replace the line:
java -Xmx1024M -cp nxt.jar:lib/*:conf nxt.Nxt
with
java -Xmx450M -cp nxt.jar:lib/*:conf nxt.Nxt
b) If your VPS has 1024 MB RAM, replace the line:
java -Xmx1024M -cp nxt.jar:lib/*:conf nxt.Nxt
with
java -Xmx800M -cp nxt.jar:lib/*:conf nxt.Nxt
-----
press CTRL+X and then Y to save the file.
12)
13) run
to show running processes, check that you see process 'java' running and using CPU and RAM, if it is, then press 'q' to enter 'top'.
14)