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
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
相关文章推荐
- 在 UNIX 和 Linux 系统上安装和配置 WebSphere Application Server
- 在linux 64bit上安装websphere application server network deployment
- linux系统安装IBM WebSphere Application Server(简称WAS)报错:JVM terminated. Exit code=1 ....
- 为您的 Linux 应用开发加油提速 2004: 安装 WebSphere Application Server Version 5.1
- 在 UNIX 和 Linux 系统上安装和配置 WebSphere Application Server
- Websphere Application Server 6.1安装配置
- J2EE 1.4 application Server for Linux 安装与配置
- 在 WebSphere Application Server 中使用资源环境提供程序
- J2EE 1.4 application Server for Linux 安装与配置
- Websphere Application Server 环境配置与应用部署最佳实践
- Oracle Application Server 10.1.3.0 for IBM X346 (Linux X86)安装手册
- 【Linux】为Ubuntu Server安装gnome图形桌面环境
- Linux运维:WebSphere Application Server 应用部署实例
- Websphere Application Server 6.1安装配置
- 如何实现WebSphere Application Server 6集群环境下的定时服务
- J2EE 1.4 application Server for Linux 安装与配置
- 单机环境构建WebSphere Application Server Community Edition V2.1.1集群环境
- WebSphere Application Server 5.0在Linux平台上中文界面乱码问题的解决
- Linux下安装Oracle Application Server 10g