1、WebSphere安装手册 1. 安装IBM Installation Manager 需要安装IBM Installation Manager的服务器为tims1 、tims2、tims3、tims4。 1.1. 安装 以root用户登录。 (1) 将安装包agent.installer.linux.gtk.x86_64_1.6.2000.20130301_2248.zip复制或上传到/WAS目录下。 (2) 进入WAS目录,解压IBM Installation Manager的安装包。 [root@tims1 ~]#cd /WAS [root@tims1 WAS
2、]# unzip agent.installer.linux.gtk.x86_64_1.6.2000.20130301_2248.zip -d installer (3) 安装。 [root@tims1 WAS]# cd installer [root@tims1 installer]# ./install 这时候,将会出现安装的图形界面。 点击Next。 选中I accept the terms in the license agreement,点击Next。 这里显示了默认的安装目录,不用更改,点击Next。 确认信息无误后,点击Install。 等待
3、一会,安装完成后将显示如下界面。 点击Restart Installation Manager,重启Installation Manager。 1.2. 启动 [root@tims1 ~]#cd /opt/IBM/InstallationManager/eclipse [root@tims1 eclipse]#./IBMIM 这时候,将出现IBM Installation Manager的图形界面。 1.3. 停止 在图形界面上直接关闭窗口即可。 2. 安装IBM HTTP Server 需要安装IBM HTTP Server的服务器为tims1。 需要
4、先安装好IBM Installation Manager。 2.1. 安装 以root用户登录。 (1) 将安装包unzip was.repo.8550.ihs.ilan_all.zip复制或上传到/WAS目录下。 (2) 进入WAS目录,解压IBM Http Server的安装包。 [root@tims1 ~]#cd /WAS [root@tims1 WAS]# unzip was.repo.8550.ihs.ilan_all.zip -d was.repo.8550.ihs.ilan_all (3) 打开IBM Installation Manager界面,开始安装。
5、 进入菜单File – Preferences… 点击Add Repository…,添加存储库。 点击Browse,弹出选择存储库配置文件的窗口。 在这里选择/WAS/was.repo.8550.ihs.ilan_all/repository.config,点击OK。 确认路径正确后,点击OK。 这样,IBM Installation Manager的存储库将显示在Respositories区域内。点击OK。 点击Install。 请等待一小会。 界面中显示了IBM HTTP Server的安装包,选中它,点击Next。 选中I a
6、ccept the terms in the license agreement,点击Next。 默认的共享资源路径/opt/IBM/IMShared不需要修改,点击Next。 选中Create a new package group,默认的安装目录/opt/IBM/HTTPServer不需要修改,点击Next。 这里显示了两个IBM HTTP Server,一个是32位的,一个是64位的。64位操作系统请选择64位的IBM HTTP Server。点击Next。 默认的HTTP端口是80,一般不需要修改。如果80端口号被占用,可修改成其他端口号。点击Next。
7、确认信息无误后,点击Install。 等待一会,安装完成后将显示如下界面。 点击Finish,关闭窗口。 2.2. 启动 进入/opt/IBM/HTTPServer/bin目录 [root@tims1~]cd /opt/IBM/HTTPServer/bin 查看一下httpd依赖的动态库 [root@tims1 bin]# ldd httpd linux-vdso.so.1 => (0x00007fff2e467000) libm.so.6 => /lib64/libm.so.6 (0x000000350a200000) libaprutil-1.s
8、o.0 => /usr/lib64/libaprutil-1.so.0 (0x00007f84f65f5000) librt.so.1 => /lib64/librt.so.1 (0x0000003509e00000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000003515600000) libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003509a00000) libdl.so.2 => /lib64/libdl.so.2 (0x0000003509200000) libex
9、pat.so.0 => not found libapr-1.so.0 => /usr/lib64/libapr-1.so.0 (0x00007f84f63c7000) libc.so.6 => /lib64/libc.so.6 (0x0000003509600000) libuuid.so.1 => /lib64/libuuid.so.1 (0x0000003514200000) libexpat.so.1 => /lib64/libexpat.so.1 (0x000000350d600000) libdb-4.7.so => /lib64/libdb-4.7.so (0
10、x0000003515200000) /lib64/ld-linux-x86-64.so.2 (0x0000003508e00000) libfreebl3.so => /lib64/libfreebl3.so (0x0000003514e00000) 如果出现libexpat.so.0 => not found,那么创建一个指向/lib64/libexpat.so.1的链接 [root@tims1 bin]# ln -s /lib64/libexpat.so.1 /lib64/libexpat.so.0 再次查看一下httpd依赖的动态库,这里显示所有的动态库都可以找到
11、了。 [root@tims1 bin]# ldd httpd linux-vdso.so.1 => (0x00007fffb29ff000) libm.so.6 => /lib64/libm.so.6 (0x000000350a200000) libaprutil-1.so.0 => /usr/lib64/libaprutil-1.so.0 (0x00007f87ab1ae000) librt.so.1 => /lib64/librt.so.1 (0x0000003509e00000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0
12、000003515600000) libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003509a00000) libdl.so.2 => /lib64/libdl.so.2 (0x0000003509200000) libexpat.so.0 => /lib64/libexpat.so.0 (0x000000350d600000) libapr-1.so.0 => /usr/lib64/libapr-1.so.0 (0x00007f87aaf80000) libc.so.6 => /lib64/libc.so.6 (0x00
13、00003509600000) libuuid.so.1 => /lib64/libuuid.so.1 (0x0000003514200000) libdb-4.7.so => /lib64/libdb-4.7.so (0x0000003515200000) /lib64/ld-linux-x86-64.so.2 (0x0000003508e00000) libfreebl3.so => /lib64/libfreebl3.so (0x0000003514e00000) 启动 [root@tims1 bin]# ./apachectl start 启动后系统将出现
14、以下进程。 [root@tims1 bin]# ps -ef|grep httpd root 26063 1 0 05:29 ? 00:00:00 /opt/IBM/HTTPServer/bin/httpd -d /opt/IBM/HTTPServer -k start nobody 26064 26063 0 05:29 ? 00:00:00 /opt/IBM/HTTPServer/bin/httpd -d /opt/IBM/HTTPServer -k start nobody 26065 26063 0 05:2
15、9 ? 00:00:00 /opt/IBM/HTTPServer/bin/httpd -d /opt/IBM/HTTPServer -k start nobody 26066 26063 0 05:29 ? 00:00:00 /opt/IBM/HTTPServer/bin/httpd -d /opt/IBM/HTTPServer -k start root 26095 2528 0 05:29 pts/0 00:00:00 grep httpd 启动后,在浏览器中输入http://localhost或http://127.0
16、0.1(如果是在其他机器上访问,需要将localhost或127.0.0.1换成IBM HTTP Server的IP地址),将显示IBM HTTP Server的欢迎页面,这说明启动正常了。 2.3. 停止 [root@tims1 ~]cd /opt/IBM/HTTPServer/bin [root@tims1 bin]# ./apachectl stop 3. 安装Web Server Plugin-ins 需要安装Web Server Plugin-ins的服务器为tims1。 需要先安装好IBM Installation Manager。 以root用户登
17、录。 (1) 将安装包was.repo.8550.plg.ilan_all.zip复制或上传到/WAS目录下。 (2) 进入WAS目录,解压安装包。 [root@tims1 ~]#cd /WAS [root@tims1 WAS]# unzip was.repo.8550.plg.ilan_all.zip -d was.repo.8550.plg.ilan_all (3) 打开IBM Installation Manager界面。 进入菜单File – Preferences… 点击Add Repository…,添加存储库。 点击Browse,弹出选择存储库
18、配置文件的窗口。 在这里选择/WAS/was.repo.8550.plg.ilan_all/repository.config,点击OK。 确认路径正确后,点击OK。 这样,IBM Installation Manager的存储库将显示在Respositories区域内。点击OK。 点击Install。 请等待一小会。 界面中显示了Web Server Plug-ins的的安装包,选中它,点击Next。 选中I accept the terms in the license agreement,点击Next。 选中Create a new pac
19、kage group,默认的安装目录/opt/IBM/WebSphere/Plugins不需要修改,点击Next。 这里显示了两个IBM WebSphere SDK for Java,一个是32位的,一个是64位的。64位操作系统请选择64位的IBM HTTP Server。点击Next。 确认信息无误后,点击Install。 等待一会,安装完成后将显示如下界面。 点击Finish,关闭窗口。 4. 安装WebSphere Application Server 需要安装WebSphere Application Server的服务器为tims2、tims3、ti
20、ms4。 需要先安装好IBM Installation Manager。 以root用户登录。 (1) 将安装包WASND_v8.5.5_1of3.zip、WASND_v8.5.5_2of3.zip、WASND_v8.5.5_3of3.zip复制或上传到/WAS目录下。 (2) 进入WAS目录,解压安装包。 [root@tims2 ~]#cd /WAS [root@tims2 WAS]# unzip WASND_v8.5.5_1of3.zip -d WASND_v8.5.5_1of3 [root@tims2 WAS]# unzip WASND_v8.5.5_2of3.zi
21、p -d WASND_v8.5.5_2of3 [root@tims2 WAS]# unzip WASND_v8.5.5_3of3.zip -d WASND_v8.5.5_3of3 (3) 打开IBM Installation Manager界面。 进入菜单File – Preferences… 点击Add Repository…,添加存储库。 点击Browse,弹出选择存储库配置文件的窗口。 在这里选择/WAS/WASND_v8.5.5_1of3/repository.config,点击OK。 确认路径正确后,点击OK。 这样,WebSphere A
22、pplication Server的存储库将显示在Respositories区域内。点击OK。 点击Install。 请等待一小会。 界面中显示了WebSphere Application Server的安装包,选中它,点击Next。 选中I accept the terms in the license agreement,点击Next。 默认的共享资源目录/opt/IBM/IMShared不需要修改,点击Next。 选中Create a new package group,默认的安装目录/opt/IBM/WebSphere/AppServer不需要修改,点击
23、Next。 这里显示了支持的语言,默认选中了English,可以选中Simplified Chinese添加简体中文语言包。点击Next。 EJB的三个选项不需要选中,Sample applications也不需要选中;对于64位的操作系统,最后的IBM WebSphere SDK请选择64位的。点击Next。 这里要求插入盘2,盘2的目录是/WAS/WASND_v8.5.5_2of3/disk2,请输入或通过Browse选择,然后点击OK。 这里要求插入盘3,盘3的目录是/WAS/WASND_v8.5.5_3of3/disk3,请输入或通过Browse选择,然后点击O
24、K。 等待一会,安装完成后将显示如下界面。 选择None,点击Finish,关闭窗口。 5. 创建部署管理器 需要创建部署管理器的服务器为tims2。 需要先安装好IBM WebSphere Application Server。 5.1. 创建部署管理器 以root用户登录。 打开概要文件管理工具。 打开方式1: 菜单:Applications – IBM WebSphere – IBM WebSphere Application Server v8.5 – Tools – Profile Management Tool 打开方式2: [root@tims2
25、~]# cd /opt/IBM/WebSphere/AppServer/bin/ProfileManagement [root@tims2 ProfileManagement]# ./pmt.sh 点击Create。 选择Management,点击Next。 选择Deployment manager,点击Next。 选择Advanced profile creatiojn,点击Next。 选中Deploy the administrative console (recommended),点击Next。 默认的概要文件名称Dmgr01和目录/opt/IB
26、M/WebSphere/AppServer/profiles/Dmgr01不需要修改,点击Next。 输入节点名称tims2CellManage01,主机名称tims2,单元名称tims2Cell01,点击Next。 选中Enable administrative security,输入用户名和密码。这个用户名和密码由安装者自己确定,需要牢记。点击Next。 选中Create a new default personal certificate,点击Next。 将两个Expiration period in years都设置为15,其他不变,点击Next。 各端口
27、号不需要修改,点击Next。 不要选中Run the deployment manager process as a Linux service,直接点击Next。 确认信息无误后,点击Create。 等待一会。 选中Launch the First steps console,点击Finish。 点击Installation verification验证。 上面出现了The Installation Verification Tool verification succeeded说明安装成功了。 这时候,在浏览器里输入https://localhos
28、t:9043/ibm/console/,将会出现管理控制台的登录页面。输入前面指定的用户名和密码即可登录。 5.2. 启动部署管理器 [root@tims2 ~]# cd /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin [root@tims2 bin]# ./startManager.sh ADMU0116I: Tool information is being logged in file /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/dmgr/st
29、artServer.log ADMU0128I: Starting tool with the Dmgr01 profile ADMU3100I: Reading configuration for server: dmgr ADMU3200I: Server launched. Waiting for initialization status. ADMU3000I: Server dmgr open for e-business; process id is 4387 5.3. 停止部署管理器 [root@tims2 ~]# cd /opt/IBM/WebSphere/Ap
30、pServer/profiles/Dmgr01/bin [root@tims2 bin]# ./stopManager.sh -username wasadmin -password 123456 ADMU0116I: Tool information is being logged in file /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/dmgr/stopServer.log ADMU0128I: Starting tool with the Dmgr01 profile ADMU3100I: Rea
31、ding configuration for server: dmgr ADMU3201I: Server stop request issued. Waiting for stop status. ADMU4000I: Server dmgr stop completed. 执行stopManager.sh时要指定用户名和密码,这个用户名和密码是前面安装过程中输入的。 需要先安装好IBM WebSphere Application Server。 6. 创建节点 需要创建结点的服务器为tims3、tims4。 需要先安装好IBM WebSphere Applicat
32、ion Server。 6.1. 创建结点 以root用户登录。 打开概要文件管理工具。 打开方式1: 菜单:Applications – IBM WebSphere – IBM WebSphere Application Server v8.5 – Tools – Profile Management Tool 打开方式2: [root@tims3 ~]# cd /opt/IBM/WebSphere/AppServer/bin/ProfileManagement [root@tims3 ProfileManagement]# ./pmt.sh 点击Create。
33、 选择Application server,点击Next。 选择Advanced profile creatiojn,点击Next。 取消选中Deploy the default application,点击Next。 默认的概要文件名称AppSrv01和目录/opt/IBM/WebSphere/AppServer/profiles/AppSrv01不需要修改,点击Next。 在tims3服务器上安装时,输入节点名称tims3Node01,服务器名称server1,主机名称tims3; 在tims4服务器上安装时,输入结点名称tims4Node01,服务器名称ser
34、ver1,主机名称tims4。 点击Next。 选中Enable administrative security,输入用户名和密码。这个用户名和密码由安装者自己确定,需要牢记。点击Next。 选中Create a new default personal certificate,点击Next。 将两个Expiration period in years都设置为15,其他不变,点击Next。 各端口号不需要修改,点击Next。 不要选中Run the application server process as a Linux service,直接点击Next。
35、 不要选中Create a Web server definition,直接点击Next。 确认信息无误后,点击Create。 等待一会。 选中Launch the First steps console,点击Finish。 点击Installation verification验证。 上面出现了The Installation Verification Tool verification succeeded说明安装成功了。 6.2. 将节点联合到部署管理器 [root@tims3 ~]# cd /opt/IBM/WebSphere/AppServer/
36、profiles/AppSrv01/bin 下面这个命令中192.168.24.102是部署管理器所在服务器(tims2)的IP地址,8879是部署管理器的SOAP connector port,wasadmin和123456分别是部署管理器的用户名和密码。 [root@tims3 bin]# ./addNode.sh 192.168.24.102 8879 -username wasadmin -password 123456 ADMU0116I: Tool information is being logged in file /opt/IBM/Web
37、Sphere/AppServer/profiles/AppSrv01/logs/addNode.log ADMU0128I: Starting tool with the AppSrv01 profile CWPKI0309I: All signers from remote keystore already exist in local keystore. ADMU0001I: Begin federation of node tims3Node01 with Deployment Manager at 192.168.24.102:8879. ADMU000
38、9I: Successfully connected to Deployment Manager Server: 192.168.24.102:8879 ADMU0505I: Servers found in configuration: ADMU0506I: Server name: server1 ADMU2010I: Stopping all server processes for node tims3Node01 ADMU0512I: Server server1 cannot be reached. It appears to be stopped.
39、 ADMU0024I: Deleting the old backup directory. ADMU0015I: Backing up the original cell repository. ADMU0012I: Creating Node Agent configuration for node: tims3Node01 ADMU0014I: Adding node tims3Node01 configuration to cell: tims2Cell01 ADMU0016I: Synchronizing configuration between node and cel
40、l. ADMU0018I: Launching Node Agent process for node: tims3Node01 ADMU0020I: Reading configuration for Node Agent process: nodeagent ADMU0022I: Node Agent launched. Waiting for initialization status. ADMU0030I: Node Agent initialization completed successfully. Process id is: 4433
41、 ADMU0300I: The node tims3Node01 was successfully added to the tims2Cell01 cell. ADMU0306I: Note: ADMU0302I: Any cell-level documents from the standalone tims2Cell01 configuration have not been migrated to the new cell. ADMU0307I: You might want to: ADMU0303I: Update the configur
42、ation on the tims2Cell01 Deployment Manager with values from the old cell-level documents. ADMU0306I: Note: ADMU0304I: Because -includeapps was not specified, applications installed on the standalone node were not installed on the new cell. ADMU0307I: You might want to
43、 ADMU0305I: Install applications onto the tims2Cell01 cell using wsadmin $AdminApp or the Administrative Console. ADMU0003I: Node tims3Node01 has been successfully federated. 按照上述方法分别在tims3和tims4上创建一个结点并将结点联合到部署管理器后,需要重启一下部署管理器。 6.3. 常见错误 6.3.1. 错误1 [root@tims3 ~]# cd /opt
44、/IBM/WebSphere/AppServer/profiles/AppSrv01/bin [root@tims3 bin]# ./addNode.sh 192.168.24.102 8879 -username wasadmin -password 123456 ADMU0116I: Tool information is being logged in file /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/addNode.log ADMU0128I: Starting tool with the A
45、ppSrv01 profile CWPKI0314E: The following error is returned from an exception: ADMC0016E: The system cannot create a SOAP connector to connect to host 192.168.24.102 at port 8879. ADMU0113E: Program exiting with error: com.ibm.websphere.management.exception.Conn
46、ectorException: ADMC0016E: The system cannot create a SOAP connector to connect to host 192.168.24.102 at port 8879., resulting from: [SOAPException: faultCode=SOAP-ENV:Protocol; msg=; targetException=.MalformedURLException] ADMU4123E: Ensure that the
47、 Deployment Manager is running on the specified host and port. Also ensure that the security configuration in ssl.client.props on the node is compatible with the Deployment Manager. ADMU1211I: To obtain a full trace of the failure, use the -trace option. ADMU
48、0211I: Error details may be seen in the file: /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/addNode.log 解决办法: 关闭部署管理器所在服务器(tims2)的防火墙。 这个在总体说明一节已经说明。 6.3.2. 错误2 [root@tims3 bin]# ./addNode.sh 192.168.24.102 8879 -username wasadmin -password 123456 ADMU0116I: Tool informatio
49、n is being logged in file /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/addNode.log ADMU0128I: Starting tool with the AppSrv01 profile CWPKI0308I: Adding signer alias "CN=tims2, OU=Root Certificate," to local keystore "ClientDefaultTrustStore" with the following SHA digest: 79:B3:0E:1B:C7:1E:14:34:4F:D0:53:CB:FD:04:98:99:B2:02:9B:37 CWPKI0309I: All signers from remote keystore already exist in local keystore. ADMU0001I: Begin federation of node tims3Node01 with Deployment Manager at 192.168.24.102:8879. ADMU0009I: Successfully






