第1章WebSphere7安装1.1安装1.1.1版本WebSphere71.1.2静默安装静默安装可以通配置一个应答文件,在安装过程中自动应答,以实现WAS7无图形化无交互的静默安装。
安装过程中除特别说明外,全部使用tsaip用户。
1.编辑~/.bash_profile文件(使用tsaip用户)添加下面内容:umask=0222.检查和安装软件包(使用root用户)在linux基本系统环境下,websphere安装需要如下包:compat-db-4.2.52-5.1.i386.rpmcompat-db-4.2.52-5.1.x86_64.rpmcompat-libstdc++-296-2.96-138.i386.rpmcompat-libstdc++-33-3.2.3-61.i386.rpmcompat-libstdc++-33-3.2.3-61.x86_64.rpmelfutils-0.137-3.el5.x86_64.rpmelfutils-devel-0.137-3.el5.i386.rpmelfutils-devel-0.137-3.el5.x86_64.rpmelfutils-devel-static-0.137-3.el5.i386.rpmelfutils-devel-static-0.137-3.el5.x86_64.rpmelfutils-libelf-0.137-3.el5.i386.rpmelfutils-libelf-0.137-3.el5.x86_64.rpmelfutils-libelf-devel-0.137-3.el5.i386.rpmelfutils-libelf-devel-0.137-3.el5.x86_64.rpmelfutils-libelf-devel-static-0.137-3.el5.i386.rpmelfutils-libelf-devel-static-0.137-3.el5.x86_64.rpmelfutils-libs-0.137-3.el5.i386.rpmelfutils-libs-0.137-3.el5.x86_64.rpmlibXp-1.0.0-8.1.el5.i386.rpmlibXp-1.0.0-8.1.el5.x86_64.rpmrpm-build-4.4.2.3-18.el5.x86_64.rpm使用如下命令检查:rpm -qa | grep compat-dbrpm -qa | grep compat-libstdc++rpm -qa | grep elfutilsrpm -qa | grep elfutils-develrpm -qa | grep elfutils-devel-staticrpm -qa | grep elfutils-libelfrpm -qa | grep elfutils-libelf-develrpm -qa | grep elfutils-libsrpm -qa | grep libXprpm -qa | grep rpm-build3.上传和解压安装介质(以下如无特别说明,均使用tsaip用户)使用xftp上传安装介质时,必须使用binray模式,再执行如下命令解压:cd<WAS安装介质所在目录>tar-zxvf <WAS安装介质的文件名>解压时报错:gzip: stdin: invalid compressed data--format violated【解决方法】linux用ftp下载时有时候会出现这样的问题,得用bin模式下载文件才行。
一般我们是用xftp上传时默认是auto模式,一般是ascii的上传模式,必须修改为binary 模式。
修改方法为在xftp中进入Commands | TransferType菜单,改为binary,如下图所示:4.修改responsefile.nd.txt文件进入WAS目录,修改responsefile.nd.txtcd <解压后得到的WAS目录>mkdir -p /opt/ibm/WebSphere/AppServer创建目录时报错,原因是tsaip用户没有对/opt的写权限【解决办法】创建一个/opt/ibm目录,并把所有者赋给tsaip1.使用root用户:mkdir/opt/ibmchown -R tsaip:tsaip /opt/ibm2.使用tsaip用户mkdir -p /opt/ibm/WebSphere/AppServercp responsefile.nd.txt myresponsefile.nd.txtvi myresponsefile.nd.txt修改如下内容:resp o nsef i l e.nd.t xtresponsefile.nd.txt的示例文件如下所示:5.确认安装目录存在且为空WebSphere安装前指定的安装目录必须已经存在且内容为空6.安装cd<解压后得到的WAS目录>./install -options myresponsefile.nd.txt-silent上面命令执行完成后,可以通过如下命令查看安装日志,确认是否安装成功:tail -f /opt/ibm/WebSphere/AppServer/logs/install/log.txt安装时报错:com.ibm.ws.install.ni.ismp.actions.FeaturePanelControlAction, err, java.io.FileNotFoundException: /tmp/normalFeaturePanelControl.xml (Permission denied) 【解决办法】原因是tasip用户没有/tmp目录的权限普通情况下/tmp目录的权限应该是如下所示:但不知道什么原因,会缺少了最后一个t权限,则此时tsaip用户无法向/tmp目录写入,可以使用root用户登录,输入如下命令:cd /chmod 1777 tmp在Centos5.3下安装时报错:ge(Mar 18, 2012 12:34:25 PM), Process, com.ibm.ws.install.ni.ismp.actions.OSPrereqCheckAction, err, System Prerequisites Check Warning: A supported operating system was not detected.Support for your operating system might have been added after the release of the product. See the WebSphere Application Server detailed system requirements Web pages for more information about supported operating systems. You can continue with the installtion, but the installation or product operation might not succeed without applying maintenance. Go to the product support Web pages to obtain the latest maintenance packages to apply after installation.(Mar 18, 2012 12:34:25 PM), Process, com.ibm.ws.install.ni.ismp.actions.OSPrereqCheckAction, wrn,To disable operating system prerequisite checking, set option disableOSPrereqChecking to true, or refer to the "Operating System Prerequisite Checking" section in the sample response file.(Mar 18, 2012 12:34:25 PM), Process, com.ibm.ws.install.ni.ismp.actions.SettleNIFRegistryAction, msg1, Current install/uninstall process failed.(Mar 18, 2012 12:34:25 PM), Process, com.ibm.ws.install.ni.ismp.actions.SetExitCodeAction, msg1, CWUPI0000I: EXITCODE=1(Mar 18, 2012 12:34:25 PM), Process, com.ibm.ws.install.ni.ismp.actions.ISMPLogSuccessMessageAction, msg1, INSTCONFFAILED [tsaip@OIP-TEST2 W AS]$ vi myresponsefile.nd.txtcom.ibm.ws.install.ni.ismp.actions.FeaturePanelControlAction, err, java.io.FileNotFoundException: /tmp/normalFeaturePanelControl.xml (Permission denied) 【解决办法】注意上述报错信息中用红色标出的部分,根据其指示,修改myresponsefile.nd.txt文件,将将disableOSPrereqChecking=true前面的注释去掉,使之生效在Centos5.3下安装时报错:ge./install: line 401: [: -ge: unary operator expected【解决办法】因为install文件里有一段会读取/etc/redhat-release,并从中取第7个字段与5作比较,而Centos中这个文件只有3个字段,因此可以备份intall文件后修改install文件,将401行中的$7改为$3。
1.1.3补丁静默安装部署应用包,需要将was 7.0 升到7.0.0.1。
上传补丁工具7.0.0.11-WS-UPDI-LinuxAMD64.tar.gz和两个补丁7.0.0-WS-WAS-LinuxX64-FP0000011.pak、7.0.0-WS-WASSDK-LinuxX64-FP0000011.pak。