WAS启动server时,不默认启动应用

有时候调整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>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值