To start GlassFish from the command line, change the directory to[glassfish installation directory]/glassfish5/bin
, and execute the following command:
./asadmin start-domain
Note
The preceding command, and most commands shown in this chapter assume a Unix or Unix-like operating system, such as Linux or macOS. For Windows systems, the initial ./
is not necessary.
A few short seconds after executing the preceding command, we should see a message similar to the following at the bottom of the terminal:
Waiting for domain1 to start ..............Successfully started the domain : domain1domain Location: /home/heffel/glassfish-5/glassfish5/glassfish/domains/domain1Log File: /home/heffel/glassfish- 5/glassfish5/glassfish/domains/domain1/logs/server.logAdmin Port: 4848 Command start-domain executed successfully.
We can then open a browser window and type the following URL in the browser's location text field:http://localhost:8080
.
If everything went well, we should see a page indicating...