starting hub
java -jar selenium-server-standalone-2.44.0.jar -role hub
Starting node
java -jar selenium-server-standalone-2.44.0.jar -role node -hub http://localhost:4444/grid/register
If you want to set a specific port
java -jar selenium-server-standalone-2.44.0.jar -role hub -port 4441