Use commands to create a profile, start the server of the profile,
display the profile ports, and open the administrative console.
Before you begin
This task assumes a basic familiarity with the manageprofiles command,
other application server commands, and system commands.
Before you can
create and use a profile, you must install the product.
About this task
Perform the following steps to create a profile, start the server
of the profile, display ports for your profile, and open the administrative
console for your server.
Procedure
- Create the server profile from the original installation:
app_server_root/bin/manageprofiles.sh
app_server_root\bin\manageprofiles.bat
app_server_root/bin/manageprofiles
Assume that you create the profile by using
the defaults.
![[Windows]](../../windows.gif)
The following script
is an example for creating an application server profile on the Windows platform:
"C:\Program Files\IBM\WebSphere\AppServer\bin\manageprofiles" -create
-templatePath "C:\Program Files\IBM\WebSphere\AppServer\profileTemplates\default"
(The
script is displayed on multiple lines for printing purposes.)
newfeatThe following script is
for the Windows platform and is an example for creating an application server
profile that is augmented for the
Feature Pack for Web
Services:
"C:\Program Files\IBM\WebSphere\AppServer\bin\manageprofiles" -create
-templatePath "C:\Program Files\IBM\WebSphere\AppServer\profileTemplates\WEBSERVICES\default.wsfep"
(The script is displayed on multiple lines for printing purposes.)
Change directories to the bin directory
of the new server profile. For example, issue the following
command:
cd "C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\bin"
- Start the server.
Change directories
to the app_server_root\bin directory
of the original installation.
![[AIX HP-UX Linux Solaris Windows]](../../dist.gif)
Issue the
startServer command.
startServer server1 -profileName AppSrv01
![[iSeries]](../../iseries.gif)
The server name is the same name as the profile, which,
in this case, is AppSrv01. Issue the
startServer command.
startServer -profileName AppSrv01
- Display the ports.
These
are the ports assigned during profile creation.
Open
the portdef.props file in the app_server_root\profiles\AppSrv01\properties
directory.
![[iSeries]](../../iseries.gif)
Use the dspwasinst QShell script to display
the ports for your new profile:
app_server_root/bin/dspwasinst -profileName profileName
The WC_adminhost port listed from Other Ports is the administrative
console port.
- Open the administrative console.
![[AIX HP-UX Linux Solaris Windows]](../../dist.gif)
The
port for the server1 administrative console is defined on the HTTP_TRANSPORT_ADMIN
setting. If the value of the setting is
20003, then specify
the following Web address in your browser:
http://hostname_or_IP_address:20003/ibm/console/
![[iSeries]](../../iseries.gif)
For example, if the value of the WC_adminhost port is 9061
for your server, then specify the following Web address in your browser:
http://
host
name or IP address:9061/ibm/console
Results
You created an application server profile, started an application
server, and accessed the administrative console through commands.
What to do next
Deploy an application.