LNSOTOM / DataServer

A java data server demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to run DataServer

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

About

A java data server demo


Languages

Language:Java 100.0%