Linux上静默安装websphere7 我的成功安装过程

(此文转载自http://www.webspherechina.net/club/thread-17647-1-1.html)原作者:pchming

转载过来是为了以后自己需要时,可方便查看。

准备操作系统oracle Enterprise linux 5.5(Kernel 2.6.18-194.el5)websphere7.0,安装操作系统时只需选择安装基本系统和编辑器。(操作系统安装过程略过)

重启系统后,按下面的步骤执行静默安装过程

1.编辑 ~/.bash_profile文件,添加下面内容:

umask=022

2.编辑 ~/.bashrc 文件,添加下面内容:

ulimit –n 8192

3.检查和安装软件包:

linux基本系统环境下,websphere安装需要如下包:

compat-db-4.2.52-5.1.i386.rpm

compat-db-4.2.52-5.1.x86_64.rpm

compat-libstdc++-296-2.96-138.i386.rpm

compat-libstdc++-33-3.2.3-61.i386.rpm

compat-libstdc++-33-3.2.3-61.x86_64.rpm

elfutils-0.137-3.el5.x86_64.rpm

elfutils-devel-0.137-3.el5.i386.rpm

elfutils-devel-0.137-3.el5.x86_64.rpm

elfutils-devel-static-0.137-3.el5.i386.rpm

elfutils-devel-static-0.137-3.el5.x86_64.rpm

elfutils-libelf-0.137-3.el5.i386.rpm

elfutils-libelf-0.137-3.el5.x86_64.rpm

elfutils-libelf-devel-0.137-3.el5.i386.rpm

elfutils-libelf-devel-0.137-3.el5.x86_64.rpm

elfutils-libelf-devel-static-0.137-3.el5.i386.rpm

elfutils-libelf-devel-static-0.137-3.el5.x86_64.rpm

elfutils-libs-0.137-3.el5.i386.rpm

elfutils-libs-0.137-3.el5.x86_64.rpm

libXp-1.0.0-8.1.el5.i386.rpm

libXp-1.0.0-8.1.el5.x86_64.rpm

rpm-build-4.4.2.3-18.el5.x86_64.rpm

检查软件包的命令

[root@was rpms]# rpm –qa | grep 软件包名称。

安装软件包:

[root@was rpms]# rpm -ivh elfutils-libelf-0.*.i386.rpm

[root@was rpms]# rpm -ivh elfutils-libelf-devel*

[root@was rpms]# rpm -ivh elfutils-libs*

[root@was rpms]# rpm -ivh elfutils-devel-*

[root@was rpms]# rpm -ivh elfutils-0.*

[root@was rpms]# rpm -ivh libXp-*

[root@was rpms]# rpm -ivh rpm-*

[root@was rpms]# rpm -ivh compat-*

4.安装websphere

[root@was rpms]# cd /opt/was7/WAS

[root@was WAS]# ./install -options /opt/myresponsefile.txt –silent

我的应答文件myresponsefile.txt
只列出改动项,其余默认。

-OPT silentInstallLicenseAcceptance="true"

-OPT if_cip_modifyexistinginstall=customizationAndMaintenance

-OPT disableNonBlockingPrereqChecking="true"

-OPT checkFilePermissions="true"

-OPT installType="installNew"

-OPT profileType="standAlone"

-OPT feature="languagepack.console.all"

-OPT feature="languagepack.server.all"

-OPT PROF_enableAdminSecurity="true"

-OPT PROF_adminUserName=admin

-OPT PROF_adminPassword=********

5.检查安装过程
[root@was WAS]# cd /opt/IBM/WebSphere/AppServer/bin
[root@was bin]# ./installver.sh
......
CWNVU0470I: [ivu] Starting to analyze: wsfp.wsaddressing.impl
I CWNVU0480I: [ivu] Done analyzing: wsfp.wsaddressing.impl
I CWNVU0470I: [ivu] Starting to analyze: wsnotification
I CWNVU0480I: [ivu] Done analyzing: wsnotification
I CWNVU0470I: [ivu] Starting to analyze: wssecurity.impl
I CWNVU0480I: [ivu] Done analyzing: wssecurity.impl
I CWNVU0400I: [ivu] Total issues found : 2
I CWNVU0340I: [ivu] Done.

[root@was bin]# ./verifyinstallver.sh
I CWNVU0160I: [ivu] Verifying.
I CWNVU0170I: [ivu] The installation root directory is /opt/IBM/WebSphere/AppServer/
I CWNVU0300I: [ivu] The total number of user excluded files found is 0.
I CWNVU0300I: [ivu] The total number of IBM excluded files found is 273.
I CWNVU0185I: [ivu] Searching component directory for file listing: files.list
I CWNVU0460I: [ivu] The utility is running.
I CWNVU0260I: [ivu] The total number of components found is: 391
I CWNVU0270I: [ivu] Gathering installation root data.
I CWNVU0290I: [ivu] Starting the verification for 2 components.
I CWNVU0470I: [ivu] Starting to analyze: installver
I CWNVU0480I: [ivu] Done analyzing: installver
I CWNVU0470I: [ivu] Starting to analyze: installver.bin
I CWNVU0480I: [ivu] Done analyzing: installver.bin
I CWNVU0400I: [ivu] Total issues found : 0
I CWNVU0340I: [ivu] Done.

7.察看websphere 服务器名称 一般都是server1
[root@was bin]# ./serverStatus.sh -all
ADMU0116I: Tool information is being logged in file
           /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/serverStatus.log
ADMU0128I: Starting tool with the AppSrv01 profile
ADMU0503I: Retrieving server status for all servers
ADMU0505I: Servers found in configuration:
ADMU0506I: Server name: server1
ADMU0509I: The Application Server "server1" cannot be reached. It appears to be
           stopped.

8.启动服务器 server1
[root@was bin]# ./startServer.sh server1
ADMU0116I: Tool information is being logged in file
           /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/server1/startServer.log
ADMU0128I: Starting tool with the AppSrv01 profile
ADMU3100I: Reading configuration for server: server1
ADMU3200I: Server launched. Waiting for initialization status.
ADMU3000I: Server server1 open for e-business; process id is 2771

至此 websphere 应用服务器静默安装完成,以后可通过外部浏览器登陆到服务器https://你的服务器地址:9043/ibm/console/login.jsp或通过命令行进行配置与管理。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值