简体   繁体   中英

How to stop application,application server,node,nodeagent in websphere

our java application is deployed in web sphere in solaris server, and in the solaris some upgrades need to be performed, before they perform upgraded i need to stop the application in websphere.

so please help what are the things i need to stop in a sequence and how?, there will be a application,application server,node,nodeagent,httpserver,dmgr all those.

tell me how can stop and start above all in a sequence.

Thanks, in advance...

The usual shutdown approach would be to shutdown in this order

  1. WebServer(s)
  2. Application(s)
  3. Appserver(s)
  4. Nodeagent(s) (this represents the node too in your question)
  5. Dmgr(s) (usually only one see this link )

Then starting back up would be the same list but like this:

  1. Dmgr(s)
  2. Nodeagent(s)
  3. Appserver(s)
  4. Application(s)
  5. Webserver(s)

You could step through most of these stop activities on the WebSphere Application Server console... and for starting you have to get the dmgr running from the command line before you can access the console and you have to start the nodeagent from the command line to do the start activities from the console, but there is no built in way from a to z to make this all happen in a defined sequence, other than perhaps configuring operating services with dependencies via wasservice etc and that varies between Windows, Linux, Solaris... there is some information in WebSphere Application Server V8: Administration and Configuration Guide in 7.9.2 about how to do this in Linux/Unix so most people write a bring up script and a shutdown script that is custom to their environment to call lower level scripts provided, and need to add delays or other logic to sequence to their desired level of control... see some of these here but basically:

to stop

  • apachectl stop (to stop webserver)
  • stopServer (or see -stopservers on stopNode command below)
  • stopNode
  • stopManager

and to start

  • startManager
  • startNode (depending on how you have the Monitoring policy set this could start the appservers for you and how you have the applications set to start or not will handle the applications (default is to have apps start when server starts)
  • apachectl start (to start webserver)

You could get even more complex with using scripting in wsadmin for the native WebSphere Application Server elements, but there have been courses and books published on that subject, so I don't think it can fully be explained here.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM