how do I start and stop glassfish? via terminal?

How would this be done via terminal?

Use the asadmin script command.

Start with

/path/to/asadmin start-domain domain1

Stop via

/path/to/asadmin stop-domain domain1

From within the asadmin CLI:

asadmin> exit

Glassfish Server Cheat Sheet

How long is ist suppose to take to start as I did the whole asadmin> start-domain domain1 thing and im already on 3 lines of dots from “waiting to start”

I had to kill it cause it was taking so long.