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:
- 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
- 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
Post your comment on this topic.