资源描述
资料内容仅供您学习参考,如有不当之处,请联系改正或者删除。
一、 系统环境
1、 安装系统环境: Centos6.4_64。
2、 安装前置环境: 将以下内容作为SHELL脚本内容写入某个文件并赋予执行权限, 内容中各别路径根据实际环境修改即可。
#!/bin/bash
mkdir /zyi
mv /etc/yum.repos.d/CentOS-* /zyi
mv /zyi/CentOS-Media.repo /etc/yum.repos.d/
cat > /etc/yum.repos.d/CentOS-Media.repo <<EOF
[c6-media]
baseurl=file:///media/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
EOF
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
mount -o loop /home/chp/linux/CentOS-6.4-x86_64-bin-DVD1.iso /media/
cd /media/Packages
yum -y install compat-libstdc++-* libXp-1.0.0-15.1.el6.* libXft-2.3.1-2.el6.* libXtst-1.2.1-2.el6.* gtk2-2.18.9-12.el6.* ksh- 0621-19.el6.x86_64.rpm PackageKit-glib-* PackageKit-gtk-module* gtk2-engines-* libcanberra-gtk2*
3、 优化系统内核
修改配置文件vim /etc/profiles, 增加以下内容
ulimit -SHn 655350
echo never > /sys/kernel/mm/transparent_hugepage/enabled
修改配置文件 vim /etc/sysctl.conf, 增加以下内容
vm.overcommit_memory = 1
net.core.somaxconn = 65535
net.core.rmem_default = 256960
net.core.rmem_max = 513920
net.core.wmem_default = 256960
net.core.wmem_max = 513920
dev_max_backlog = 4096
net.core.optmem_max = 81920
net.ipv4.tcp_mem = 131072 262144 524288
net.ipv4.tcp_rmem = 8760 256960 4088000
net.ipv4.tcp_wmem = 8760 256960 4088000
net.ipv4.tcp_keepalive_time = 1800
net.ipv4.tcp_keepalive_intvl = 30
net.ipv4.tcp_keepalive_probes = 3
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_fin_timeout = 30
net.ipv4.ip_local_port_range = 1024 65000
net.ipv4.tcp_max_syn_backlog = 4096
4、 修改计算机名及hosts文件
vim /etc/sysconfig/network
vim /etc/hosts
二、 部署安装
一、 安装准备条件
准备环境:
Centos6.4_x64位系统, 需要安装桌面环境。
安装依赖包:
使用光驱或者ISO挂载安装盘CentOS-6.4-x86_64-bin-DVD1.iso, 并执行附件中的 install.sh 脚本
安装包:
agent.installer.linux.gtk.x86_64_1.8.3000. 0606_0047.zip
WASND_v8.5.5_1of3.zip
WASND_v8.5.5_2of3.zip
WASND_v8.5.5_3of3.zip
补丁包:
8.5.5-WS-WAS-FP0000009-part1.zip
8.5.5-WS-WAS-FP0000009-part2.zip
JDK包
WASJDK7.tar.gz
二、 开始部署安装
1、 首先挂载系统安装盘
2、 新建文件, 将脚本内容粘贴到文件, 赋予执行权限而且执行。
3、 安装IBM软件安装管理工具
解压安装文件到某个目录
解压完成进入insmana, 执行./install 安装”安装管理工具”
安装WAS, 首先解压WAS的3个安装包到某个目录
然后经过IBM安装工具进行安装
此步选择”None”
续: 补丁安装, 此步是后期部署应用过程中发现存在问题, IBM售后解决。
补丁包: 8.5.5.0-ws-wasprod-ifpm90932.zip
将补丁包解压到某个路径, 打开Install Manager 管理工具进行升级, 首先配置更新库的路径。
此步注意将下方的”Search service repositories during installation and updates.”勾选去掉。
选择解压补丁包的路径
点击update, 最后Finish即可。
三、 配置集群
另: 下文需要机器名字, 分别命名服务器甲乙为linuxwas1 linuxwas2
2、 在服务器甲(linuxwas1)创立dmgr概要文件
进入安装目录: /opt/IBM/WebSphere/AppServer/bin/
创立dmgr命令: ./manageprofiles.sh -create -profileName Dmgr01 -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/dmgr/
3 、 启动dmgr, 进入控制台
/opt/IBM/Websphere/AppServer/profiles/Dmgr01/bin/startServer.sh Dmgr01
http://ip:9060/admin/console
4、 重启dmgr
/opt/IBM/Websphere/AppServer/profiles/Dmgr01/bin/stopServer.sh Dmgr01
/opt/IBM/Websphere/AppServer/profiles/Dmgr01/bin/startServer.sh Dmgr01
5、 服务器甲(linuxwas1)创立概要文件FNCPE01
./manageprofiles.sh -create -profileName FNCPE01 -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/managed
6、 服务器甲把FNCPE01添加到dmgr管理:
/opt/IBM/WebSphere/AppServer/profiles/FNCPE01/bin/addNode.sh linuxwas1 8879
7、 创立集群CPECluster:
注: 只选择当前一个节点
到此为止, 创立CPECluster成功。
8、 在服务器乙( linuxwas2) 创立概要文件 FNCPE02
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create -profileName FNCPE02 -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/managed
9、 将FNCPE02添加到服务器甲( linuxwas1) 的dmgr管理:
/opt/IBM/WebSphere/AppServer/profiles/FNCPE02/bin/addNode.sh linuxwas1 8879
10、 为CPECluster添加成员:
选择服务器乙( linuxwas2) 的节点
集群成员完成添加。
11、 重启linuxwas1和linuxwas2的WebSphere CPECluster现在有两位成员。能够经过
dmgr01管理界面看到。
展开阅读全文