Thursday, July 05, 2012

Change WebSphere Ports without Reinstalling

Scenario: you have WebSphere Application Server 7.1 installed as ND. If the cells are using default ports on the same host and you want to access the different cells concurrently, you may want to change the ports on one of the cell.

1.  Go to the master config repository for the server ports (Dmgr profiles directory)

2.  Backup the current serverindex.xml

3.  Edit each of the ports in this file. (Dmgr will use the new ports)

4.  Repeat this process for all nodes in the master repository (Node profiles directories)

5.  For all cells,

6.  Backup virtualhosts.xml

7.  edit all the ports.  (nodes will use this ports to connect with Dmgr)

7.  Start the dmgr (startServer.sh)

8.  For each node,  executue a syncNode so that nodes get their new port assignments from the master repository

//bin/syncNode.sh

Use the new SOAP ports used in step #3.

9.  Start up each node

10.  Start up each application server.

Confirm which new ports you want to use before you start.
To make it easier to remember, maybe instead of the usual 80, can try prepending like 9080, 19080, etc.


Done.

No comments: