有时候调整WAS参数,或者因为应用的一些问题,导致was启动不了,进不了控制台,这样就没有办法做控制台的任何操作了,这个时候需要把默认启动应用的地方设置成false
例如:
/was7/IBM/WebSphere/AppServer/profiles/AppSrv01/config/cells/loopbackNode01Cell/applications/hdqs_war.ear/deployments/hdqs_war
有个 deployment.xml
将里面的 enable调整为"false"
重启was
<?xml version="1.0" encoding="UTF-8"?>
<appdeployment:Deployment xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:appdeployment="http://www.ibm.com/websphere/appserver/schemas/5.0/appdeployment.xmi" xmi:id="Deployment_1486482143339">
<deployedObject xmi:type="appdeployment:ApplicationDeployment" xmi:id="ApplicationDeployment_1486482143339" deploymentId="0" startingWeight="1" binariesURL="hdqs/hdqs_war.ear" useMetadataFromBinaries="false" enableDistribution="true" createMBeansForResources="true" re
loadEnabled="false" appContextIDForSecurity="href:loopbackNode01Cell/hdqs_war" filePermission=".*\.dll=755#.*\.so=755#.*\.a=755#.*\.sl=755" allowDispatchRemoteInclude="false" allowServiceRemoteInclude="false" asyncRequestDispatchType="DISABLED">
<targetMappings xmi:id="DeploymentTargetMapping_1486482143340" enable="false" target="ServerTarget_1486482143340"/>
<classloader xmi:id="Classloader_1486482143340" mode="PARENT_FIRST"/>
<modules xmi:type="appdeployment:WebModuleDeployment" xmi:id="WebModuleDeployment_1486482143340" deploymentId="1" startingWeight="10000" uri="hdqs.war">
<targetMappings xmi:id="DeploymentTargetMapping_1486482143341" target="ServerTarget_1486482143340"/>
<classloader xmi:id="Classloader_1486482143341"/>
</modules>
<properties xmi:id="Property_1486482143340" name="metadata.complete" value="false"/>
</deployedObject>
<deploymentTargets xmi:type="appdeployment:ServerTarget" xmi:id="ServerTarget_1486482143340" name="server1" nodeName="loopbackNode01"/>
</appdeployment:Deployment>