[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-oloop/home/chp/linux/CentOS-6.4-x86_64-bin-DVD1.iso/media/
cd/media/Packages
yum-yinstallcompat-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-20100621-19.el6.x86_64.rpmPackageKit-glib-*PackageKit-gtk-module*gtk2-engines-*libcanberra-gtk2*
3、优化系统内核
修改配置文件vim/etc/profiles,增加以下内容
ulimit-SHn655350
echonever>/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.20150606_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
将补丁包解压到某个路径,打开InstallManager管理工具进行升级,首先配置更新库的路径。
此步注意将下方的“Searchservicerepositoriesduringinstallationandupdates.”勾选去掉。
选择解压补丁包的路径
点击update,最后Finish即可。
三、配置集群
另:
下文需要机器名字,分别命名服务器甲乙为linuxwas1linuxwas2
2、在服务器甲(linuxwas1)创建dmgr概要文件
进入安装目录:
/opt/IBM/WebSphere/AppServer/bin/
创建dmgr命令:
./manageprofiles.sh-create-profileNameDmgr01-templatePath/opt/IBM/WebSphere/AppServer/profileTemplates/dmgr/
3、启动dmgr,进入控制台
/opt/IBM/Websphere/AppServer/profiles/Dmgr01/bin/startServer.shDmgr01
http:
//ip:
9060/admin/console
4、重启dmgr
/opt/IBM/Websphere/AppServer/profiles/Dmgr01/bin/stopServer.shDmgr01
/opt/IBM/Websphere/AppServer/profiles/Dmgr01/bin/startServer.shDmgr01
5、服务器甲(linuxwas1)创建概要文件FNCPE01
./manageprofiles.sh-create-profileNameFNCPE01-templatePath/opt/IBM/WebSphere/AppServer/profileTemplates/managed
6、服务器甲把FNCPE01添加到dmgr管理:
/opt/IBM/WebSphere/AppServer/profiles/FNCPE01/bin/addNode.shlinuxwas18879
7、创建集群CPECluster:
注:
只选择当前一个节点
到此为止,创建CPECluster成功。
8、在服务器乙(linuxwas2)创建概要文件FNCPE02
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh-create-profileNameFNCPE02-templatePath/opt/IBM/WebSphere/AppServer/profileTemplates/managed
9、将FNCPE02添加到服务器甲(linuxwas1)的dmgr管理:
/opt/IBM/WebSphere/AppServer/profiles/FNCPE02/bin/addNode.shlinuxwas18879
10、为CPECluster添加成员:
选择服务器乙(linuxwas2)的节点
集群成员完成添加。
11、重启linuxwas1和linuxwas2的WebSphereCPECluster现在有两位成员。
可以通过
dmgr01管理界面看到。