官术网_书友最值得收藏!

Uninstalling WAS

Before we move on and cover how to do a silent (no GUI) installation of WAS, we need to cover how to uninstall WAS. It is important to know how to uninstall WAS correctly because if you don't, residual folders and files can be left behind. If you try to install WAS over an existing WAS installation, the wizard will exit in error. So if you purposely want to re-install again into the same folder path, you need to ensure that WAS is removed correctly before you do so.

What we will do is remove the installation we created earlier and then re-create the same setup using a command-line based silent installation.

First we need to stop the WAS process using the stop server command located in the following folder<was_root>/<profile_root>/bin

  1. For Linux:

    <was_profile_root>/bin/stopServer.sh server01

  2. For Windows:

    <was_profile_root\bin\stopServer.bat server01

Manually deleting profiles

Before uninstalling WAS binaries it is good practice to remove profiles ahead of uninstalling WAS. To delete a profile, you can use the manageprofiles.sh command-line script. Using a SSH/Terminal session for Linux (or command prompt in the case of Windows), navigate to<was_profile_root>/bin and then type the following command:

  1. For Linux:

    ./manageprofiles.sh -listProfiles

  2. For Windows:

    manageprofiles.bat -listProfiles

The result will be:

[appsrv01]

To delete the appsrv01 profile, run the following command:

  1. For Linux:

    ./manageprofiles.sh -delete -profileName appsrv01

  2. For Windows:

    manageprofiles.bat -delete -profileName appsrv01

    Tip

    You can use the help switch of the manageprofiles.sh/manageprofiles.bat command to list the available command-line arguments.

Uninstalling WAS using IIM

You can use the IIM GUI to uninstall WAS using the following steps:

  1. Load IIM and click on the Uninstall button, as shown in the following screenshot:
  2. In the Uninstall Packages screen, select the IBM WebSphere Application Server Trial v8.0 package, as shown in the following screenshot and click Next to continue:
  3. The wizard will then provide a summary screen; click Uninstall to continue. IIM will then remove all WAS profiles for that particular WAS package, and then remove the WAS binaries. The entire repository located in the<iim_shared_resources> folder will also be deleted. Once the uninstall process is complete, a screen will be presented giving you the option to view the uninstall logs:
  4. Click Finish to return to the IIM workbench. You can now close the IIM.
  5. Delete the<was_root> installation folder.

Uninstalling WAS using command line

IIM has some new features for uninstalling WAS. You can work with response files and Installation Manager to uninstall the product silently in a variety of ways. You can use a response file by:

  • Recording a new response file and using the GUI
    • The process of recording a response file is the same as recording an installation response file. We cover this later on in the chapter.
  • Using a response file
    • IIM provides a simple sample-response file called uninstall.xml, which can be used as part of a silent uninstall. We will cover how to do this in the following paragraph.

    Note

    Running the uninstaller script with no parameters will automatically launch the IIM, and then you will be provided with the same process as mentioned previously. However, if you need to run the install in headless mode (with no GUI) you can use the commands which follow.

To uninstall via the command line using the default sample response.xml file as created by IIM during the installation, navigate to the<iim_root>/eclipse directory and run the following command:

  1. For Linux:

    ./IBMIM --launcher.ini silent-install.ini -input <was_root>/uninstall/uninstall.xml -log /var/tmp/uninstall_log.xml

  2. For Windows:

    IBMIM.exe --launcher.ini silent-install.ini -input <was_root>\uninstall\uninstall.xml -log c:\temp\uninstall_log.xml

Note

Following a successful uninstall you will need to remove the original folder where you installed WAS, as contained within are the logs from the installation process. You cannot install WAS into the same location a second time if it is not empty.

The uninstaller will now unregister the WebSphere 8.0.0.0 package group we installed earlier and then it will delete the WAS binaries from the filesystem. Once the uninstall process has completed, you can delete the<was_root> folder and all its contents, allowing you to re-install into the same location at a later stage. We will now move onto how to install WAS silently using IIM in headless mode.

主站蜘蛛池模板: 宜兰县| 遵义市| 科尔| 靖边县| 冕宁县| 明水县| 乡城县| 潞城市| 西华县| 师宗县| 阿巴嘎旗| 邳州市| 增城市| 潞城市| 乐清市| 新余市| 沿河| 奉贤区| 金坛市| 陵川县| 石家庄市| 济阳县| 东安县| 额敏县| 茌平县| 仙桃市| 泰安市| 固始县| 固始县| 虎林市| 房产| 凤城市| 菏泽市| 鄄城县| 辽宁省| 竹北市| 郴州市| 科技| 墨竹工卡县| 包头市| 高淳县|