By default, the REST API server listens for client connections on TCP port 5000. If necessary (e.g., if there is a conflict caused by a different process listening on the same port), this port number may be changed.

To change the port number, follow these steps:

  1. On each LifeKeeper cluster node, open the /etc/default/LifeKeeper file using a text editor:

# vi /etc/default/LifeKeeper

and add an entry of the following form (or modify the entry if it already exists):

RESTAPI_PORT=<REST API Server TCP Port>

where <REST API Server TCP Port> is a valid TCP port in the range 1-65535 which is not already in use. For example, to set the REST API server port to TCP port 5010, the following entry would be added:

RESTAPI_PORT=5010

  1. In order to apply the changes, the systemd services that manage the REST API server (lifekeeper-api.service) and GUI server (lifekeeper-wmc.service) must both be restarted on all LifeKeeper nodes where they are running:

# systemctl restart lifekeeper-api lifekeeper-wmc

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment