您的位置:首页 > 运维架构 > Linux

linux环境下安装WebSphere Application Server

2015-01-21 15:01 363 查看
环境要求

linux 64位

was7 nd(集群版) 64位

安装前检查

1.关闭防火墙 

[root@gfx opt]# service iptables

用法:iptables {start|stop|restart|condrestart|status|panic|save}

[root@gfx opt]# service iptables stop

[root@gfx opt]# service ip6tables stop

[root@gfx opt]# chkconfig iptables off

[root@gfx opt]# chkconfig ip6tables off

2.查看防火墙 

[root@gfx opt]# service iptables status

3.绑定主机名和ip地址映射

[root@gfx opt]# cat /etc/hosts

编辑文件

[root@gfx opt]# vi /etc/hosts

在其中加入语句:

192.168.136.128 gfx

修改主机名,与之对应

[root@gfx opt]# hostname gfx

修改大小

[root@gfx opt]# vi /etc/security/limits.conf

在文件末尾加上语句:

root soft nofile 65535

root hard nofile 65535

 4.禁用selinux命令(与防火墙有关系)

临时禁用

setenforce Permissive

彻底禁用

修改 /etc/selinux/config 配置文件

改 SELINUX=enforcing 为 SELINUX=disabled

重启生效

安装was步骤

1.新建一个文件夹

mkdir was_install

2.进入目录解压

tar xf WAS7_Linux_x86_64.tar.gz

3.解压完后进入WAS目录

替换responsefile.nd.txt

修改一下参数:

responsefile.nd.txt文件(本人实验时文件名是responsefile.base.txt,一下皆替换即可)位于WAS文件夹中,命令行安装(静默安装)需要修改该文件的相关选择,下面讲要修改的参数陈列如下:

-OPT silentInstallLicenseAcceptance="true"    –接受License

-OPT allowNonRootSilentInstall="true" --是否允许非root用户安装

-OPT disableOSPrereqChecking="true" --取消对系统的检测

-OPT installType="installNew"   --是否全新安装

-OPT feature="noFeature"   --不安装示例

-OPT installLocation="/opt/IBM/WebSphere/AppServer" --默认安装路径

-OPT profileType="none"   --不生成概要

-OPT PROF_enableAdminSecurity="false" --设置管理员安全,如果该值为true 则在下面两项上输入用户名和密码。如:用户名为admin ,密码为123456

-OPT PROF_adminUserName=”admin”

-OPT PROF_adminPassword=”123456”

保存该文件

4.安装

./install -silent -options "/root/was_install/WAS/responsefile.nd.txt"

1.建dmgr

./manageprofiles.sh  -create -profileName Dmgr01 -profilePath /opt/IBM/WebSphere/AppServer/profiles/Dmgr01 -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/dmgr -nodeName simapp01CellManager01 -cellName simapp01Cell01 -enableAdminSecurity true -adminUserName
admin -adminPassword admin -hostName zhongwh -isDefault -validatePorts

2.建server

./manageprofiles.sh  -create -profileName AppSrv01 -profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01  -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default -nodeName simapp01Node01 -enableAdminSecurity true -adminUserName admin -adminPassword
admin -hostName zhongwh -isDefault -validatePorts   

./manageprofiles.sh  -create -profileName AppSrv02 -profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv02  -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default -nodeName simapp01Node02 -enableAdminSecurity true -adminUserName admin -adminPassword
admin -hostName zhongwh -isDefault -validatePorts   

3.起dmgr,server

进入目录/opt/IBM/WebSphere/AppServer/profiles/dmgr/bin

执行命令:./startManager.sh

进入目录/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin

执行命令:./startServer.sh server1

进入目录/opt/IBM/WebSphere/AppServer/profiles/AppSrv02/bin

执行命令:./startServer.sh server2

4.到was控制台添加节点

5.删除默认的server

6.创建集群

安装ihs

1.更改计算机名,不能用下划线

2.更改host配置文件 c:\window\system32\drivers\etc\hosts

添加安装was服务器地址 192.168.136.128 gfx

  本机地址  192.168.136.129 gfx-ihs
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息