Basic Enterprise Server Commands
Administration of the Enterprise Server includes tasks such as creation, configuration, control
and management of domains, clusters, node agents, and server instances. This section contains
the following topics:
■
“Creating a Domain” on page 31
■
“Deleting a Domain” on page 32
■
“Listing Domains” on page 32
■
“Starting the Domain” on page 32
■
“Starting the Default Domain on Windows” on page 33
■
“Stopping the Domain” on page 33
■
“Stopping the Default Domain on Windows” on page 33
■
“Restarting the Domain” on page 33
■
“Creating a Cluster” on page 33
■
“Starting a Cluster” on page 34
■
“Stopping a Cluster” on page 34
■
“Creating a Node Agent” on page 34
■
“Starting a Node Agent” on page 34
■
“Stopping a Node Agent” on page 35
■
“Starting an Instance” on page 35
■
“Stopping an Instance” on page 35
■
“Restarting an Instance” on page 35
■
“Recreating the Domain Administration Server” on page 36
Creating a Domain
Domains are created using the
create-domain
command. The following example command
creates a domain named
mydomain
. The administration server listens on port 5000 and the
administrative user name is
admin
. The command prompts for the administrative and master
passwords.
$ asadmin create-domain --adminport 5000 --adminuser admin mydomain
To start the Admin Console for
mydomain
domain, in a browser, enter the following URL:
http://
hostname
:5000
In Enterprise Server 9.1, every domain has a profile associated with it. For information on
profiles, see
“Usage Profiles” on page 27
. You can choose the profile of a domain only during
creation. Use the
--profile
option with the
create-domain
command to specify a profile for
the domain. If you do not use the
--profile
option to explicitly specify a profile, the default
profile is associated with the domain. The
AS_ADMIN_PROFILE
variable in the
asadminenv.conf
file defines the default profile.
Basic Enterprise Server Commands
Chapter 1 • Enterprise Server Overview
31
Содержание Sun GlassFish Enterprise Server 2.1
Страница 12: ...12 ...
Страница 13: ...Figures FIGURE 1 1 Enterprise Server Instance 29 FIGURE 9 1 RoleMapping 105 13 ...
Страница 14: ...14 ...
Страница 18: ...18 ...
Страница 38: ...38 ...
Страница 62: ...62 ...
Страница 96: ...96 ...
Страница 126: ...126 ...
Страница 160: ...160 ...
Страница 214: ...214 ...
Страница 218: ...218 ...
Страница 230: ...230 ...