Keycloak 18.0.0. - how to set up two keycloak server on my computer?

Hi,

Description:
I am doing a udemy course about keycloak etc. unfortunately the lecturerer is using keycloak 10.0.0 and has no time to update or explain his steps for Keycloak 18.0.0.

So, what I would like to do for my testing environment is, to initiate two keycloak server.
One should run on

  1. http://localhost:8080 and the other one should run on:
  2. http://localhost:8083

In the past the command would have been:
./standalone.sh -Djboss.socket.binding.port-offset=100

For some reasons this command does not work.

What’s the new way?
I am indifferent, if you give me an explanation for Win/Linux/Mac. Anything would be great.

Thank you in advance

I would point you here OpenJDK - Keycloak. This will show you how to get a dev running quickly.

If you want something lasting and change ports etc., Configuring Keycloak - Keycloak. For this you will need to install a DB server and certificates to get it working. Hope that helps.

Wouldn’t your second instance be listening on http://localhost:8180 if you used

./standalone.sh -Djboss.socket.binding.port-offset=100

Or, http://localhost:8090 if you used

./standalone.sh -Djboss.socket.binding.port-offset=10