WebSphere Stop service, delete profile _websphere

Source: Internet
Author: User

When developing WebSphere applications, it is often necessary to start and stop the server, but the startup and shutdown program hides the path too deep to find a half-day for each use. Here are some shortcuts to Windows start and stop servers, which can be easily used by placing shortcuts on menus. Using command line startup is faster than booting under a graphical user interface.

Save the file contents to the corresponding file, then create a shortcut to the three files, and then drag the shortcut to the Windows bottom shortcut startup. Only use the mouse point two times to complete the start and stop operation.

Start server, File Startserver.bat

    @echo start Server[server1], profilename[appsrv01]  
    @echo off  
    cd/d D:\Program files\ibm\rational\sdp\6.0\ Runtimes\base_v6\profiles\appsrv01\bin  
    cmd/c startserver server1-profilename AppSrv01  
    @echo on  
    @echo Boot complete  
    @echo off  
    Pause  


Stop server, File Stopserver.bat
<pre name= "code" class= "java" >    @echo Stop server[server1], PROFILENAME[APPSRV01]  
    @echo off  
    cd/d d:\ Program Files\ibm\rational\sdp\6.0\runtimes\base_v6\profiles\appsrv01\bin  
    cmd/c stopserver Server1- ProfileName AppSrv01  
    @echo on  
    @echo stop completing  
    @echo off  
    Pause  


Reboot server, File Restartserver.bat
    @echo reboot Server[server1], profilename[appsrv01]  
    @echo off  
    cd/d D:\Program files\ibm\rational\sdp\6.0\ Runtimes\base_v6\profiles\appsrv01\bin  
    cmd/c stopserver Server1  
    cmd/c startserver APPSRV01  
    @echo on  
    @echo reboot complete  
    @echo off  
    Pause  



Users can modify the Appsrv path and profile name according to the actual environment of their machine.



To delete a profile:

You need to verify that the user performing the action has been administrator, and that the Windows platform is normal for users on Aix and Linux platform root users. In this step, you use the Windows platform test to use a system Management Officer


Stop was service

It is important to confirm that the was service was stopped before deleting and that the Windows platform can look for a confirmed startup state in Services.msc, and that Ps-ef|grep was can be used on Linux and AIX platforms to confirm

Confirm Profile Name

CD D:\Program Files (x86) \ibm\websphere\appserver\bin>

Manageprofiles.bat-listprofiles

Delete profile Definition

CD D:\Program Files (x86) \ibm\websphere\appserver\bin>

Manageprofiles.bat-delete-profilename Myprofile

Delete profile Directory

Delete Profiles folder to D:\Program Files (x86) \ibm\websphere\appserver\


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.