http://www.ibm.com/developerworks/cn/websphere/techjournal/0905_webcon/0905_webcon.html
主机名修改要求
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、更改应用服务器的端口
对于应用程序服务器,请选择服务器 > 应用程序服务器 > 应用程序服务器 > 端口。