was8.5静默安装

需求

1、没有图形化界面上的服务器上,安装was8.5
2、自动化安装was8.5
3、安装了图形化界面,无法启动安装程序

环境

操作系统:AIX6
mgr包路径:/mnt/soft/mgrsoft
agent.installer.aix.gtk.ppc_1.8.5000.20160506_1125.zip
将上面的agent.installer.aix…安装装包解压到/mnt/soft/mgrsoft
ND包路径:/mnt/soft/was8.5
WASND_v8.5.5_1of3.zip
WASND_v8.5.5_2of3.zip
WASND_v8.5.5_3of3.zip
将上面的WASND安装包解压到/mnt/soft/was8.5路径下

方案

安装mgr(was的管理工具)

cd /mnt/soft/mgrsoft
#”installc“,使用非root用户安装was
#”-installationDirectory“,was管理工具安装路径
./installc -installationDirectory /opt  -acceptLicense

安装was8.5

#获取版本号
#cd /opt/IBM/InstallationManager/eclipse/tools
# ./imcl listAvailablePackages -repositories /mnt/soft/was8.5/repository.config
#版本号如下:
com.ibm.websphere.ND.v85_8.5.5000.20130514_1044

安装脚本

”com.ibm.websphere.ND.v85_8.5.5000.20130514_1044“,上一步获取的版本号
”-repositories“,软件仓库的配置文件(WASND三个压缩包的解压路径下)
”-installationDirectory“,was8.5安装路径(此处的安装路径要和/mnt/soft/was8.5/repository.config文件中的安装路径一致,本次安装路径为/mnt/soft/was8.5/repository.config)

./imcl install com.ibm.websphere.ND.v85_8.5.5000.20130514_1044 \
-repositories /mnt/soft/was8.5/repository.config \
-installationDirectory /was8.5/IBM/WebSphere/AppServer \
-sharedResourcesDirectory /was8.5/IBM/IMShared \
-acceptLicense \
-showVerboseProgress
#安装完成验证:
cd /was8.5/IBM/WebSphere/AppServer/bin
# ./versionInfo.sh
WVER0010I: Copyright (c) IBM Corporation 2002, 2012; All rights reserved.
WVER0012I: VersionInfo reporter version 1.15.1.48, dated 2/8/12
--------------------------------------------------------------------------------
IBM WebSphere Product Installation Status Report
--------------------------------------------------------------------------------
Report at date and time January 20, 2020 12:18:18 AM CST
Installation
--------------------------------------------------------------------------------
Product Directory        /was8.5/IBM/WebSphere/AppServer
Version Directory        /was8.5/IBM/WebSphere/AppServer/properties/version
DTD Directory            /was8.5/IBM/WebSphere/AppServer/properties/version/dtd
Log Directory            /var/ibm/InstallationManager/logs
Product List
--------------------------------------------------------------------------------
ND                       installed
Installed Product
--------------------------------------------------------------------------------
Name                  IBM WebSphere Application Server Network Deployment
Version               8.5.5.0
ID                    ND
Build Level           gm1319.01
Build Date            5/14/13
Package               com.ibm.websphere.ND.v85_8.5.5000.20130514_1044
Architecture          PPC64
Installed Features    IBM 64-bit WebSphere SDK for Java
                      WebSphere Application Server Full Profile
                      EJBDeploy tool for pre-EJB 3.0 modules
                      Embeddable EJB container
                      Stand-alone thin clients and resource adapters
--------------------------------------------------------------------------------
End Installation Status Report
--------------------------------------------------------------------------------

创建域管理server

”-hostname“主机名称,其他参数按照安装路径填写

cd /was8.5/IBM/WebSphere/AppServer/bin 
./manageprofiles.sh -create -profileName Dmgr01 \
-profilePath /was8.5/IBM/WebSphere/AppServer/profiles/Dmgr01 \
-templatePath /was8.5/IBM/WebSphere/AppServer/profileTemplates/dmgr \
-hostname aix56

创建应用管理server

”-nodeName“,自定义
”-serverName“,自定义

cd /was8.5/IBM/WebSphere/AppServer/bin 
./manageprofiles.sh -create -profileName AppSvr01 \
-profilePath /was8.5/IBM/WebSphere/AppServer/profiles/AppSvr01/ \
-templatePath /was8.5/IBM/WebSphere/AppServer/profileTemplates/default \
-hostName aix56 \
-nodeName node01 \
-serverName server01 \

启动Dmgr01

/was8.5/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/startManager.sh

将server01加入管理节点

/was8.5/IBM/WebSphere/AppServer/profiles/AppSvr01/bin/addNode.sh aix56 8879 -username admin 

启动node

/was8.5/IBM/WebSphere/AppServer/profiles/AppSvr01/bin/startNode.sh

启动server01

/was8.5/IBM/WebSphere/AppServer/profiles/AppSvr01/bin/startServer.sh server01

你可能感兴趣的:(工具)