Starting and Stopping the GlassFish Server
To start the GlassFish Server from the command line, open a terminal window or command prompt and execute the following:
asadmin start-domain --verbose
A domain is a set of one or more GlassFish Server instances managed by one administration server. Associated with a domain are the following:
The GlassFish Server’s port number. The default is 8080.
The administration server’s port number. The default is 4848.
An administration user name and password. The default user name is admin, and by default no password is required.
You specify these values when you install the GlassFish Server. The examples in this tutorial assume that you chose the default ports as well as the default user name and lack of password.
With no arguments, the start-domain command initiates the default domain, which is domain1. The --verbose flag causes all logging and debugging output to appear on the terminal window or command prompt. The output also goes into the server log, which is located in domain-dir/logs/server.log.
Or, on Windows, from the Start menu, select All Programs, then select Java EE 6 SDK, then select Start Application Server.
To stop the GlassFish Server, open a terminal window or command prompt and execute:
asadmin stop-domain domain1
Or, on Windows, from the Start menu, select All Programs, then select Java EE 6 SDK, then select Stop Application Server.
To Start the GlassFish Server Using NetBeans IDE
- Click the Services tab.
- Expand the Servers node.
- Right-click the GlassFish Server instance and select Start.
Next Steps
To stop the GlassFish Server using NetBeans IDE, right-click the GlassFish Server instance and select Stop.