使用 Wildfly 作为应用程序服务器,可以将 KeyCloak 作为 Windows Server 上的服务运行,如下所示(例如在 IIS 后面):
.\service.bat install /name keycloak /display Keycloak /desc "Keycloak"
.\service.bat start /name Keycloak
不幸的是,不再有
service.bat
可以将 KeyCloak 18 作为服务运行,因为它现在由 Quarkus 支持。
好像只有一个
kc.bat
:
./kc.bat start
那么,在 Windows Server 上将 KeyCloak 18 与 Quarkus 作为服务一起运行的正确方法是什么?
您可以从此处的讨论中受益将批处理文件作为 Windows 服务运行。 最流行的解决方案是使用NSSM。