was部署分为单机部署和分布式部署,分布式部署要用 ND版本的
但是基本的 命令行安装方式 用以下9个步骤即可:路径要根据实际情况更改为自己的
实测版本为:was 8.5.5
1.agent.installer.linux.gtk.x86_64_1.8.4000.20151125_0201.zip解压 ibminstallmanage
unzip -n agent.installer.linux.gtk.x86_64_1.8.4000.20151125_0201.zip -d ibminstallmanage
2.was的3个part解压到wasfile
unzip -n was.repo.8550.developers.ilan_part1.zip -d wasfile
3.cd /data/jenkins/new_was8.5/ibminstallmanage
./installc -installationDirectory /data/was/IMS/eclipse -acceptLicense
4.得到小版本号
cd /data/was/IMS/eclipse/tools
./imcl listAvailablePackages -repositories /data/wasfile/repository.config
返回结果:com.ibm.websphere.DEVELOPERSILAN.v85_8.5.5000.20130514_1044
5.修改repository.config文件
cd /data/was /new_was8.5/wasfile
vi repository.config
-OPT silentInstallLicenseAcceptance="true"
-OPT allowNonRootSilentInstall="true"
-OPT disableOSPrereqChecking="true"
-OPT installType="installNew"
-OPT feature="noFeature"
-OPT installLocation="/data/was/IBM/WebSphere/AppServer"
-OPT profileType="none"
-OPT PROF_enableAdminSecurity="false"
6. cd /data/was/IMS/eclipse/tools
./imcl install com.ibm.websphere.DEVELOPERSILAN.v85_8.5.5000.20130514_1044 -repositories /data/was/wasfile/repository.config -installationDirectory /data/was/IBM/WebSphere/AppServer -sharedResourcesDirectory /data/was/IBM/IMShared -nl zh-cn -acceptLicense
7.创建管理概要
cd /data/was/IBM/WebSphere/AppServer/bin
./manageprofiles.sh -create -profileName Dmgr01 -templatePath /data/was/IBM/WebSphere/AppServer/profileTemplates/management/ -hostname fin-test-ibis13
8.创建应用概要
./manageprofiles.sh -create -profileName AppSvr01 -templatePath /data/was/IBM/WebSphere/AppServer/profileTemplates/default -hostName fin-test-dfq211 -nodeName node1 -serverName server1
9. 设置用户名和密码
本人很懒,这个大家可以去网上搜,就不列举了,如果找不到,可以私信哈
单机或子节点的话,第7步就不用安装了;分布式的话,需要添加子节点:
./addNode.sh mstaer的主机名 8879 -username admin -password admin
分布式还需要更改/etc/hosts的配置,保证分布式的各个服务都能ping通
如果管理概要或应用概要安装错了,可以通过以下方式删除
1.查看安装了哪些应用及删除
cd /data/was/IBM/WebSphere/AppServer/bin
./manageprofiles.sh -listProfiles
2.删除应用
./manageprofiles.sh -delete -profileName Dmgr01
3.删除对应文件夹