Domains are created using the create-domain command. The following example command creates a domain named mydomain. The administration server listens on port 123 and the admininstrative user name is buzz. The command prompts for the administrative masterpassword.
$ asadmin create-domain --adminport 123 --adminuser buzz mydomain
To start the Admin Console for this domain, in a browser you would enter the following URL:
http://hostname:123
For the preceding create-domain example, the domain’s log files, configuration files, and deployed applications will reside in the following directory:
install_dir/domains/mydomain
To create the domain’s directory in another location, you specify the --domaindir option. For the full synax of the command, type asadmin help create-domain.