如何删除WAS的profile
来源:互联网 发布:行知实验学校怎么样 编辑:程序博客网 时间:2024/06/05 21:17
一般情况下,当然是不用考虑这种问题了。主要是在实验环境下,可能想尝试点新的玩法。
Profile Management Tool不能用来删除一个profile。
#1 先删除一个独立的app server
首先把server停掉,然后
cd D:\IBM\WebSphere\AppServer\bin
manageprofiles.bat -delete -profileName AppSrv02
====================================================================
D:\IBM\WebSphere\AppServer\bin>manageprofiles.bat -delete -profileName AppSrv02
INSTCONFSUCCESS: Success: The profile no longer exists.
====================================================================
文件系统里应该还有些残余,主要是Log文件。反正也没什么用了,直接把整个文件夹AppSrv02删除好了。
然后更新下注册表:manageprofiles.bat -validateAndUpdateRegistry
====================================================================
D:\IBM\WebSphere\AppServer\bin>manageprofiles.bat -validateAndUpdateRegistry
[]
====================================================================
这个命令的返回值看起来有点奇怪嘛。
#2 cell环境下profile的删除
先确保dmgr和node agent都正常运行
登陆console,在node页面,选中node,然后单击“Remove Node”。如果配置了安全,需要输入用户名和密码。
=====================================================================================
Removing node
ADMU2001I: Begin removal of node: HGHLTR8Y32CCNode01
ADMU2035W: WARNING! Node removal utility is unable to remove this node since it was created during Cell Profile creation. Your current node has not been modified.
ADMU2036I: To continue removal of this node manually, you may use manageprofiles utility to delete the profile for this node and run cleanupNode utility on Deployment Manager.
The console has not received information on the remove operation in a timely manner. The state of the operation is indeterminate. Check the remove node log for details.
=================================================================================================================
它说这个node是在创建cell时创建的,这个普通的node删除工具无法完成,只能用manageprofiles来完成。
那就照它说的办吧。
先在admin console里停掉node agent。
cd D:\IBM\WebSphere\AppServer\bin
manageprofiles.bat -delete -profileName AppSrv01
=================================================================================================================
D:\IBM\WebSphere\AppServer\bin>manageprofiles.bat -delete -profileName AppSrv01
INSTCONFPARTIALSUCCESS: The profile no longer exists, but errors occurred. For m
ore information, consult D:\IBM\WebSphere\AppServer\logs\manageprofiles\AppSrv01
_delete.log.
=================================================================================================================
说是部分成功,上目录看一下,也都删完了,只剩下logs目录了。所以基本认定为成功。顺便把AppSrv01清理掉。
不过admin console里面还是有这个node的信息的,所以还得执行下cleanupNode
=================================================================================================================
cd D:\IBM\WebSphere\AppServer\profiles\Dmgr01\bin
cleanupNode AppSrv01 -profileName Dmgr01
=================================================================================================================
需要输入下用户名和密码。
=================================================================================================================
D:\IBM\WebSphere\AppServer\profiles\Dmgr01\bin>cleanupNode AppSrv01 -profileName
Dmgr01
ADMU0116I: Tool information is being logged in file
D:\IBM\WebSphere\AppServer\profiles\Dmgr01\logs\cleanupNode.log
ADMU0128I: Starting tool with the Dmgr01 profile
ADMU2001I: Begin removal of node: AppSrv01
ADMU2026E: Node AppSrv01 is not incorporated into any cell.
=================================================================================================================
这下就比较纠结了。
不过貌似把node和profile搞的有点混了,搞错node的名字了:
=================================================================================================================
cd D:\IBM\WebSphere\AppServer\profiles\Dmgr01\bin
cleanupNode HGHLTR8Y32CCNode01 -profileName Dmgr01
D:\IBM\WebSphere\AppServer\profiles\Dmgr01\bin>cleanupNode HGHLTR8Y32CCNode01 -p
rofileName Dmgr01
ADMU0116I: Tool information is being logged in file
D:\IBM\WebSphere\AppServer\profiles\Dmgr01\logs\cleanupNode.log
ADMU0128I: Starting tool with the Dmgr01 profile
ADMU2001I: Begin removal of node: HGHLTR8Y32CCNode01
ADMU2024I: Removal of node HGHLTR8Y32CCNode01 is complete.
=================================================================================================================
这下admin console干净多了。
最后一步,把dmgr的profile也删掉。先把dmgr停掉。
cd D:\IBM\WebSphere\AppServer\bin
manageprofiles.bat -delete -profileName Dmgr01
=================================================================================================================
D:\IBM\WebSphere\AppServer\bin>manageprofiles.bat -delete -profileName Dmgr01
INSTCONFSUCCESS: Success: The profile no longer exists.
=================================================================================================================
Dmgr01的目录里也只剩logs了,也一并清理了。
顺便把D:\IBM\WebSphere\AppServer\logs\manageprofiles里面的log也打包清理了。
这样WebSphere又是一个全新的空的安装了。
- 如何删除WAS的profile
- 如何删除WAS的profile
- WAS初学-如何从WAS中删除一个Profile
- WAS中手动删除profile
- WAS中手动删除profile
- Xcode 如何删除Provisioning Profile
- 如何删除Xcode中多余的证书provisioning profile
- Xcode 如何删除过期的Provisioning Profile文件
- xcode中如何删除过期的Provisioning Profile
- Xcode 如何删除过期的Provisioning Profile文件
- 删除老的 provisioning profile 如何删除xcode中的多余证书
- Xcode如何删除provisioning profile文件
- 如何删除ssh secure shell中的profile
- Xcode 如何删除过期的或者多余的Provisioning Profile文件
- 删除profile
- 更改Webshpere的profile端口及删除profile
- 更改Webshpere的profile端口及删除profile
- 删除websphere下的profile(Windows)
- 解决XP系统下"HTTP 错误 403.9 - 禁止访问:连接的用户过多"的问题
- Extjs---HBox的使用
- C#读、写、删除注册表
- Ubuntu设置静态IP和DNS
- 动画-IOS开发
- 如何删除WAS的profile
- FFmpeg完美入门【10】-- FFmpeg裁剪说明
- Java中各种排序算法
- 传智播客的东西
- 腾讯副总裁吴军答腾讯的“抄袭与创新”(互联网行业的商业智慧)
- oracle导入,导出详细文档
- 比较通俗易懂的c指针笔记 (一)
- python中类属性与实例属性总结
- c语言中unsigned int和int的区别