WAS v8.5 > Set up the application serving environment > Manage profilesManage profiles using commands
Use commands to create a profile, start the server of the profile, display ports used by your server, and open the dmgr console.
This task assumes a basic familiarity with the command, other application server commands, and system commands.
Before we can create and use a profile, install the product. Create a profile, start the server of the profile, display ports used by your server, and open the dmgr console for the server.
This example deals with the profile environment of a standalone application server.
- Create the server profile from the original installation:
app_server_root\bin\manageprofiles.bat
Assume that you create the profile using the defaults. The following script is an example for creating an application server profile:
app_server_root\bin\manageprofiles.bat -create -templatePath app_server_root\profileTemplates\default
- Change directories to the profile_root/bin directory of the new server profile.
- Start the server.
Issue the startServer command.
startServer.bat server1 -profileName profile_name
The -profileName argument is not necessary if we have already changed to the profile_root/bin directory of the target profile.
- Display the ports.
These are the ports assigned during profile creation.
Edit...
profile_root\properties\portdef.props
- Open the dmgr console.
The server1 dmgr console is defined on the WC_adminhost setting for the non-secure dmgr console port or the WC_adminhost_secure setting for the secure dmgr console port.
If the value of the WC_adminhost port for the server is 20003, for example, specify the following web address in your browser:
http://host_name_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 your browser:
https://host_name_or_IP_address:9061/ibm/console/
Results
We created an application server profile, started an application server, and accessed the dmgr console using your browser.
Deploy an application.
Reference: manageprofiles command