- cd to src directory
cd /Users/Jason/Github/DataServer/src
- Login to the instance by SSH
ssh -i kit318tut.pem [email protected]
- Run DataStreamGenerator
java -jar /home/ubuntu/upload/DataStreamGenerator.jar
- Run DataServer (Another CMD window must be opened, and repeat step 2)
java -jar /home/ubuntu/upload/DataServer.jar
- back to local cmd and cd to bin directory and run Client.class for testing the server
cd ../bin
java Client
- If ports have been occupied, you should kill the existing java processes in the instance first
ps -ef|grep java
kill -9 xxxx