Set up and using the profile environment through commands
Overview
Use commands to...
- create a profile
- start a server
- display ports
- Open the console
Before you can create and use a profile, install WAS.
Perform the following steps to create and use the profile environment.
This example deals with the profile environment of a stand-alone Application Server on the Windows platform.
Procedure
- Create the server profile from the original installation:
app_server_root/bin/manageprofiles.sh|batAssume that you create the profile by using the defaults.
The following script is an example for creating an Application Server profile on the Windows platform:
cd \IBM\WebSphere\AppServer\bin\
manageprofiles -create -templatePath \IBM\WebSphere\AppServer\profileTemplates\default
Change directories to the \bin directory of the new server profile. For example, issue the following command:
cd \IBM\WebSphere\AppServer\profiles\AppSrv01\bin
- Start server1.
Change directories to the app_server_root\bin directory of the original installation Issue the startServer command.
startServer server1 -profileName AppSrv01
- Display a list of the ports assigned during profile creation.
For Windows, open...
\IBM\WebSphere\AppServer\profiles\AppSrv01\properties\portdef.props
- Open the console for server1. The port for the console is defined on the HTTP_TRANSPORT_ADMIN setting. If the value of the setting is 20003, specify the following Web address in your browser:
http://hostname_or_IP_address:20003/ibm/console/
Results
You...
- Created an Application Server profile
- Started an Application Server
- Accessed the console
What to do next
Deploy an application.
manageprofiles command