Manage profiles using commands
Use commands to create a profile, start the server of the profile, display ports used by the server, and open the admin console.
This task assumes a basic familiarity with the command, other appserver commands, and system commands.
Before we can create and use a profile, install WAS ND.
Perform the following steps to create a profile, start the server of the profile, display ports used by the server, and open the admin console for the server.
This example deals with the profile environment of a standalone application server.
- Create the server profile from the original installation:
- (Linux) [HP-UX] [Solaris]
[AIX] APP_ROOT/bin/manageprofiles.sh
- (Windows) APP_ROOT\bin\manageprofiles.bat
Assume created the profile by using defaults.
The following script is an example for creating an appserver profile:
- (Windows) APP_ROOT\bin\manageprofiles.bat -create -templatePath APP_ROOT\profileTemplates\default
- (Linux) [HP-UX] [Solaris]
[AIX] APP_ROOT/bin/manageprofiles.sh -create -templatePath APP_ROOT/profileTemplates/default
- Change directories to the $PROFILE_ROOT/bin directory of the new server profile.
- Start the server.
Issue the startServer command.
(Windows)
startServer.bat server1 -profileName profile_name
[Linux] [HP-UX] [Solaris][AIX]
startServer.sh server1 -profileName profile_name- Display the ports.
These are the ports assigned during profile creation.
(Windows) Open the portdef.props file in the $PROFILE_ROOT\properties directory.
[Linux] [HP-UX] [Solaris]
[AIX] Open the portdef.props file in the $PROFILE_ROOT/properties directory.
- Open the admin console.
The server1 admin console is defined on the WC_adminhost setting for the non-secure admin console port or the WC_adminhost_secure setting for the secure admin console port. If the value of the WC_adminhost port for the server is 20003, for example, specify the following Web address in the browser:
http://hostname_or_IP_address:20003/ibm/console/If the value of the WC_adminhost_secure port for the server is 9061, for example, specify the following Web address in the browser:
https: //hostname_or_IP_address:9061/ibm/console/
Results
You created an appserver profile, started an appserver, and accessed the admin console using the browser.
Next steps
Deploy an application.