Install WAS

简介:

Install rpms:

yum install -y libstdc++.i686 libstdc++-devel.i686 gtk2.i686 gtk2-engines.i686 \

PackageKit-gtk-module.i686 PackageKit-gtk-module.x86_64 libcanberra-gtk2.x86_64 \

libcanberra-gtk2.i686


Install IM:

./installc -silent -acceptLicense


Unstall IM:

/var/ibm/InstallationManager/uninstall/uninstallc


List Availabe Packages:

/opt/IBM/InstallationManager/eclipse/tools/imcl listAvailablePackages -repositories /root/was/repository.config


Install WAS:

/opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.websphere.NDTRIAL.v85_8.5.5000.20130514_1044 \

-repositories /root/was/repository.config \

-acceptLicense 


Install JDK:

/opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.websphere.IBMJAVA.v70_7.0.4001.20130510_2103 \

-repositories /tmp/software/java/repository.config  \

-installationDirectory /opt/IBM/WebSphere/AppServer/  \

-acceptLicense

注意:/opt/IBM/WebSphere/AppServer/为WAS安装路径,一定要准确


Uninstall WAS:

/opt/IBM/InstallationManager/eclipse/tools/imcl uninstall com.ibm.websphere.NDTRIAL.v85_8.5.5000.20130514_1044 \

-installationDirectory /opt/IBM/WebSphere/AppServer

rm -rf /opt/IBM/WebSphere/AppServer


Check Installed Packages:

/opt/IBM/InstallationManager/eclipse/tools/imcl listInstalledPackages


Create DM Profiles:

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \

-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/management \

-serverType DEPLOYMENT_MANAGER -profileName Dmgr01 \

-profilePath /opt/IBM/WebSphere/AppServer/profiles/Dmgr01 \

-enableAdminSecurity true \

-adminUserName wasadmin \

-adminPassword wasadmin \

-cellName Cell01 \

-nodeName CellManager01


Create Custom Profiles:

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \

-profileName Custom01 \

-profilePath /opt/IBM/WebSphere/AppServer/profiles/Custom01 \

-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/managed \

-nodeName CustomNode \

-cellName CustomCell \

-isDefault 


Create Default Profiles:

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \

-profileName defaultProfile \

-profilePath /opt/IBM/WebSphere/AppServer/profiles/defaultProfile \

-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default \

-nodeName CustomNode \

-cellName CustomCell \

-isDefault 


Create Cell Profiles:

first:

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \

-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/cell/dmgr \

-nodeProfilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01 \

-profileName Dmgr01 \

-cellName DefaultCell01 \

-nodeName DefaultNode01 \

-enableAdminSecurity true \

-adminUserName wasadmin \

-adminPassword wasadmin \

-appServerNodeName ServerNode

secound:

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \

-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/cell/default \

-dmgrProfilePath /opt/IBM/WebSphere/AppServer/profiles/Dmgr01 \

-portsFile /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/properties/portdef.props \

-nodePortsFile /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/properties/nodeportdef.props \

-profileName AppSrv01 \

-cellName DefaultCell01 \

-nodeName DefaultNode01 \

-enableAdminSecurity true \

-adminUserName wasadmin \

-adminPassword wasadmin \

-appServerNodeName ServerNode


Delete Profiles:

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -delete -profileName Dmgr01

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -validateAndUpdateRegistry


Add Note to DM:

/opt/IBM/WebSphere/AppServer/bin/addNode.sh was1 8879 \

-username wasadmin \

-password wasadmin \

-profileName Custom01


Delete Note:

/opt/IBM/WebSphere/AppServer/bin/removeNode.sh -force


查看安装了哪些jdk版本:

/opt/IBM/WebSphere/AppServer/bin/managesdk.sh -listAvailable


切换Dmgr01 jdk版本:

/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/managesdk.sh \

-enableProfile -sdkName 1.7_64 \

-profileName Dmgr01 -enableServers \

-user wasadmin  -password wasadmin


切换Custom01 jdk版本:

/opt/IBM/WebSphere/AppServer/profiles/Custom01/bin/managesdk.sh  \

-enableProfile -sdkName 1.7_64 \

-profileName Dmgr01 -enableServers \

-user wasadmin  -password wasadmin


切换所有Profile的sdk使用版本

在DM、node和server启动的时候执行:

[root@was8555bin]# /opt/IBM/WebSphere/AppServer/bin/managesdk.sh -enableProfileAll -sdkname 1.7_64 -enableServers


检查都安装了什么版本的jdk:

[root@was8555bin]# /opt/IBM/WebSphere/AppServer/bin/managesdk.sh -listAvailable -verbose


检查每个profile都使用的哪个版本的jdk

[root@was8555bin]# /opt/IBM/WebSphere/AppServer/bin/managesdk.sh -listEnabledProfileAll -verbose

[root@was8555bin]# /opt/IBM/WebSphere/AppServer/bin/managesdk -listEnabledProfile -profileName AppSrv02 -verbose

[root@was8555bin]# /opt/IBM/WebSphere/AppServer/bin/managesdk.sh -listEnabledProfile -profileName Node01 -verbose






     本文转自1321385590 51CTO博客,原文链接:http://blog.51cto.com/linux10000/1916487 ,如需转载请自行联系原作者



相关文章
|
5月前
yum install、localinstall和groupinstall区别
yum install、localinstall和groupinstall区别
|
存储 Prometheus Kubernetes
install victoriametrics in k8s
install victoriametrics in k8s
install victoriametrics in k8s
|
2月前
|
Unix Linux Python
sudo python -m pip install --upgrade pip
sudo python -m pip install --upgrade pip是一个用于升级Python包管理器pip的命令。这个命令由pip模块提供,它是一个Python包管理器,用于安装、升级和删除Python软件包。--upgrade选项表示要执行升级操作。
50 1
|
缓存 资源调度
pnpm install
pnpm install
1045 0
|
Ubuntu Python 开发工具
|
JavaScript 前端开发