Setting up and using the profile environment through commands
Use commands to create a profile, start a server, display ports, and open the administrative console.
Before you beginThis task assumes a basic familiarity with the wasprofile command, other Application Server commands, and system commands.
Before you can create and use a profile, install WebSphere Application Server.
About this task
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.
- Create the server profile from the original installation:
Assume that you create the AppSrv01 profile. The following script is an example for creating an Application Server profile on the Windows platform"C:\Program Files\IBM\WebSphere\AppServer\bin\wasprofile" -create -profileName AppSrv01 -profilePath "C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01" -templatePath "C:\Program Files\IBM\WebSphere\AppServer\profileTemplates\default" -nodeName AppServerNode -cellName AppServerNodeCell -hostName myhost.mycity.mycompany.com -isDefault false -winserviceCheck true -winserviceAccountType user -winserviceUserName my_user_id -winservicePassword my_password -winserviceStartupType manual -startingPort 20000
Change directories to the \bin directory of the new server profile.
For example, issue the following commandcd Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\bin
- Start server1.
Change directories to the app_server_root\bin directory of the original installation
Issue the startServer commandstartServer server1 -profileName AppSrv01
- Display all of the ports for the machine to see the ports that you set for the server process.
For example, in a Linux base shell or in the command window on a Windows platform, typenetstat -a
- Open the administrative console for server1.
The port for the administrative console is defined on the HTTP_TRANSPORT_ADMIN setting. If the value of the setting is 20003, specify the following Web address in your browserhttp://hostname_or_IP_address:20003/ibm/console/
ResultsYou created an Application Server profile, started an Application Server, and accessed the administrative console through commands.
What to do nextDeploy an application.
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.