By Alvin Alexander. Last updated: June 4, 2016
Question: What is the command to start a Glassfish server?
Answer: I use the following command to start my Glassfish server:
asadmin start-domain domain1
Although this command refers to starting domain1
, at least in my case, it also serves to start the entire Glassfish server. I don't know how this works for multiple domains, but my guess is that if you start any one of your domains, you will start up your Glassfish server.
Verify that your server is running
Assuming that your Glassfish server is running in test mode on your local computer on port 8080, you can verify that it is running by navigating to http://localhost:8080/
with your browser.