Configure some websphere7.0 commands in Linux!

Source: Internet
Author: User
1. Create a profile

Create a dmgr server through the command line, enter the $ {was_home}/bin directory, and run

./Manageprofiles. Sh-create-templatepath$ {Was_home}/Profiletemplates/dmgr-profilename$ {Profilename}

For example, go to the/opt/IBM/WebSphere/appserver 7/bin/directory and run

 CD $ {was_home}/bin

./Manageprofiles. Sh-create-templatepath/opt/IBM/WebSphere/appserver7/profiletemplates/dmgr-profilename dmgr01

Note: The template must be dmgr.

 

Create the cmdrv01 application server through the command line, enter the $ {was_home}/bin directory, and run

./Manageprofiles. Sh-create-templatepath/opt/IBM/WebSphere/appserver7/profiletemplates/default-profilename$ {Profilename}

For example, go to the/opt/IBM/WebSphere/appserver7/bin/directory and run

 CD $ {was_home}/bin

./Manageprofiles. Sh-create-templatepath/opt/IBM/WebSphere/appserver7/profiletemplates/default-profilename limit rv01

Note: The template must be set to default.

 

The WebSphere E7 profile is equivalent to the Weblogic domain.

After creating a profile, you must first run "Install Verification" in "Step 1". Otherwise, you may not be able to access it after the program is published, even if the port number is correct.

The Port Number of the WebSphere console is different from that of the application during access.

 

2. Delete the profile

1. cd c: \ Program Files \ IBM \ WebSphere \ appserver \ bin
2. manageprofiles. Bat-listprofiles (displays the summary file list)
3. manageprofiles. Bat-delete-profilename into rv02 (delete configuration information of the Profile)
4. Delete the profile directory under c: \ Program Files \ IBM \ WebSphere \ appserver \ profiles

Note: before deleting the profile, stop the corresponding service.

 

3. view the port numbers of the summary file.

For example, the command to view the dmgr port number is as follows:

CD/opt/IBM/WebSphere/appserver7/profiles/dmgr/logs

Tail aboutthisprofile.txt

 

4. Start and Stop services

For example:

Start the appsrv01 Management Server

Go to the installation directory WebSphere \ appserver7 \ profiles \ cmdrv01 \ bin of the iisrv01 application server and run the following command:

./Startserver. Sh server1 (./before the command must be added; otherwise, the command cannot be found)

 

Stop the appsrv01 Management Server

Go to the installation directory WebSphere \ appserver7 \ profiles \ cmdrv01 \ bin of the iisrv01 application server and run the following command:

./Stopserver. Sh server1 (./before the command must be added; otherwise, the command cannot be found)

 

5. View logs

For example, go to the installation directory WebSphere \ appserver7 \ profiles \ invalid rv01 \ logs \ server1 of the iisrv01 application server and run the following command:

Tail systemout. Log

Tail systemerr. Log

Or use the VI command

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.