当前位置: 首页 > 图文教程 > 服务器 > WebSphere > 关于主机名修改后websphere无法停止的问题完全解决方案

WebSphere
IBM WebSphere 常见问题解答
IBM WebSphere简介
优化WebSphere应用性能技巧集锦
利用JMX部署基于WebSphere的J2EE应用
websphere下JMS的配置和和应用
WebSphere应用服务器精选问答
建立websphere5群集实现容错
WebSphere:Tomcat和Websphere的区别
WebSphere:提高WebSphere Portal性能的捷径
WebSphere:WebSphere应用服务器精选问答

WebSphere 中的 关于主机名修改后websphere无法停止的问题完全解决方案


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-08-14   浏览: 450 ::
收藏到网摘: n/a

主机名修改要求
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、更改应用服务器端口
对于应用程序服务器,请选择服务器 > 应用程序服务器 > 应用程序服务器 > 端口。