Starting the Default Domain onWindows
Fromthe Windows Start Menu, select Programs -> Sun Microsystems -> Enterprise Server ->
StartAdmin Server.
Stoppingthe Domain
Stoppinga domain shuts down its administration server and application server instance. When
stoppinga domain, the server instance stops accepting new connections and then waits for all
outstandingconnections to complete. This process takes a few seconds because the server
instancemust complete its shutdown process. While the domain is stopped, the Admin Console
ormost asadmin commands cannot be used.
Tostop a domain, type the asadmin stop-domain command and specify the domain name. For
example,to stop the default domain (domain1), type the following:
$ asadmin stop-domain domain1
Ifthere is only one domain, then the domain name is optional. For the full syntax, type asadmin
help stop-domain.
Consultthe Admin Console online help to stop the domain through the Admin Console.
Stoppingthe Default Domain on Windows
Fromthe Start menu select Programs -> Sun Microsystems -> Enterprise Server-> Stop Admin
Server.
Restarting the Domain
Restartingthe server is the same as restarting the domain. To restart the domain or server, stop
andstart the domain.
Creatinga Cluster
Acluster is created using the create-cluster command. The following example creates a
clusternamed mycluster. The administration server host is myhost, the server port is 1234, and
theadministrative username is admin. The command prompts for the administrative
passwords.
$ asadmin create-cluster --host myhost --port 1234 --user admin mycluster
BasicEnterpriseSer ver Commands
Chapter1 • Enterprise Ser ver Overview 33