关于主机名修改后websphere无法停止的问题完全解..

下面是我做的步骤,请各位指正

主机名修改要求 
1、hostname 修改主机名 
2、/etc/hosts /etc/sysconfig/network 两个文件修改主机名 
3、最后确认hosts文件中存在127.0.0.1 和localhost
1、
./wsadmin.sh -username username -password password -lang jython
2、
AdminConfig.list('ServerIndex')
显示
'(cells/localhostNode01Cell/nodes/xjdxszxy|serverindex.xml#ServerIndex_1)'
3、修改主机名
AdminConfig.modify('(cells/localhostNode01Cell/nodes/xjdxszxy|serverindex.xml#ServerIndex_1)',  "[[hostName iisp.campus]]")
4、检查主机名
AdminConfig.show('(cells/localhostNode01Cell/nodes/xjdxszxy|serverindex.xml#ServerIndex_1)', 'hostName')
显示结果
wsadmin>AdminConfig.show('(cells/localhostNode01Cell/nodes/xjdxszxy|serverindex.xml#ServerIndex_1)', 'hostName')
'[hostName iisp.campus]'
5、保存
AdminConfig.save()
6、更改应用服务器的端口
对于应用程序服务器,请选择服务器 > 应用程序服务器 > 应用程序服务器 > 端口。
原文地址
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/txml_dump.html

作者: laolinux   发布时间: 2010-10-14