centos下安裝was6.1
1.下載was:https://www14.software.ibm.com/webapp/iwm/web/reg/download.do?source=was60&S_PKG=lnx61&S_TACT=109J84IW&S_CMP=web_dw_rt_swd&lang=en_US&cp=UTF-8&&&dlmethod=http#用戶名:xiong_we_i@163.com??? 密碼:123456
2.建議取消“啟動(dòng)第一步控制臺(tái)”選項(xiàng)(最后一步)。到此,已經(jīng)完成了WebSphere主程序的安裝,程序會(huì)自動(dòng)創(chuàng)建一個(gè)名字AppSrv01的“概要表”,(注:這里的“概要表”相當(dāng)于weblogic中的一個(gè)“domain-server”)。點(diǎn)擊【完成】完成安裝
3.啟動(dòng)報(bào)錯(cuò)
[7/22/11 16:39:22:552 CST] 0000000a WsServerImpl? E?? WSVR0009E: Error occurred during startup
META-INF/ws-server-components.xml
[7/22/11 16:39:22:580 CST] 0000000a WsServerImpl? E?? WSVR0009E: Error occurred during startup
com.ibm.ws.exception.ConfigurationError: com.ibm.ws.exception.ConfigurationError: javax.naming.ConfigurationException: Cannot get canonical host name for server
解決辦法
1.修改/etc/sysconfig/networ文件
# vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=yourname (在這修改hostname,把yourname換成你想用的名字)
2.修改/etc/hosts里面的名字
# vi /etc/hosts
127.0.0.1 localhost.localdomain localhost (在這修改hostname,把末尾的localhost換成你想用的名字)
3.最后在終端下執(zhí)行:
#hostname ***** (*****為修改后的hostname,即你想用的名字)
特別提示:三處修改的名字要保持一致,否則會(huì)出現(xiàn)問題。切記。
4.啟動(dòng)
cd /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin
[root@xiongwei2 bin]# ./startServer.sh server1
ADMU0116I: Tool information is being logged in file
?????????? /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/server1/startServer.log
ADMU0128I: Starting tool with the AppSrv01 profile
ADMU3100I: Reading configuration for server: server1
ADMU3200I: Server launched. Waiting for initialization status.
ADMU3000I: Server server1 open for e-business; process id is 3508
5.如果要卸載
[root@xiongwei2 uninstall]# pwd
/opt/IBM/WebSphere/AppServer/uninstall? 在這目錄下命令卸載即可
切不可通過系統(tǒng)工具卸載和刪文件方式
6.訪問控制臺(tái)
https://192.168.0.189:9043/ibm/console/logon.jsp
posted on 2011-07-22 17:13 tobyxiong 閱讀(1809) 評(píng)論(0) 編輯 收藏 所屬分類: java