centos下安装was6.1

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#
用户名: [email protected]    密码:123456

2. 建议取消“启动第一步控制台”选项(最后一步)。到此,已经完成了 WebSphere 主程序的安装,程序会自动创建一个名字 AppSrv01 的“概要表”,(注:这里的“概要表”相当于 weblogic 中的一个“ domain-server ”)。点击【完成】完成安装

3.启动报错
[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.最后在终端下执行:
#hostname ***** (*****为修改后的hostname,即你想用的名字)

特别提示:三处修改的名字要保持一致,否则会出现问题。切记。

4.启动
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  在这目录下命令卸载即可
切不可通过系统工具卸载和删文件方式

6.访问控制台
https://192.168.0.189:9043/ibm/console/logon.jsp

你可能感兴趣的:(centos下安装was6.1)