把Websphre的nodeagent添加到windows服务下使其随开机启动
cmd
cd D:\IBM\WebSphere\AppServer\bin
WASService -add NodeAgent -serverName nodeagent -profilePath “D:\IBM\WebSphere\AppServer\profiles\AppSrv01” -wasHome “D:\IBM\WebSphere\AppServer” -logRoot “D:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\nodeagent” -LogFile “D:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\nodeagent\startServer.log” -restart true
cd d:\Program Files\IBM\WebSphere\AppServer\bin
WASService -add NodeAgent -serverName nodeagent -profilePath "D:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv02" -wasHome "D:\Program Files\IBM\WebSphere\AppServer" -logRoot "D:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv02\logs\nodeagent" -LogFile "D:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv02\logs\nodeagent\startServer.log" -restart true
删除服务
sc delete "IBMWAS61Service - NodeAgent"