- IBM WebSphere Application Server 8.0 Administration Guide
- Steve Robinson
- 684字
- 2021-04-02 18:28:32
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
- For Linux:
<was_profile_root>/bin/stopServer.sh server01
- 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:
- For Linux:
./manageprofiles.sh -listProfiles
- For Windows:
manageprofiles.bat -listProfiles
The result will be:
[appsrv01]
To delete the appsrv01 profile, run the following command:
- For Linux:
./manageprofiles.sh -delete -profileName appsrv01
- 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:
- Load IIM and click on the Uninstall button, as shown in the following screenshot:
- 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:
- 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: - Click Finish to return to the IIM workbench. You can now close the IIM.
- 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.
- IIM provides a simple sample-response file called
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:
- For Linux:
./IBMIM --launcher.ini silent-install.ini -input <was_root>/uninstall/uninstall.xml -log /var/tmp/uninstall_log.xml
- 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.
- Google Web Toolkit 2 Application Development Cookbook
- 人臉識別算法與案例分析
- UG NX 9.0中文版基礎與實例教程
- 邊做邊學:Photoshop+CorelDRAW綜合實訓教程
- After Effects CS6入門與提高
- 計算機圖形圖像處理Photoshop CS6項目教程
- 深入理解OpenCV:實用計算機視覺項目解析(原書第3版)
- JBoss Tools 3 Developers Guide
- 虛擬現實:沉浸于VR夢境
- 剪映短視頻剪輯從入門到精通:宣傳短片+電商視頻+產品廣告+活動慶典
- Refactoring with Microsoft Visual Studio 2010
- Photoshop CS6平面設計實戰從入門到精通(經典暢銷版)
- Learning Ext JS
- Mobile Web Development
- Premiere視頻編輯案例教程:Premiere Pro 2020(微課版·第2版)