Programming/Keycloak
[Keycloak] Keycloak Docker 실행 OR Install
Allg
2021. 5. 10. 23:05
System Requirements
Edit this sectionReport an issue
These are the requirements to run the Keycloak authentication server:
- Can run on any operating system that runs Java
- Java 8 JDK
- zip or gzip and tar
- At least 512M of RAM
- At least 1G of diskspace
- A shared external database like PostgreSQL, MySQL, Oracle, etc. Keycloak requires an external shared database if you want to run in a cluster. Please see the database configuration section of this guide for more information.
- Network multicast support on your machine if you want to run in a cluster. Keycloak can be clustered without multicast, but this requires a bunch of configuration changes. Please see the clustering section of this guide for more information.
- On Linux, it is recommended to use
/dev/urandom
as a source of random data to prevent Keycloak hanging due to lack of available entropy, unless/dev/random
usage is mandated by your security policy. To achieve that on Oracle JDK 8 and OpenJDK 8, set thejava.security.egd
system property on startup tofile:/dev/urandom
.
centos7 pull
docker pull centos:centos7
JDK Download
#yum upgrade yum -y upgrade yum -y install wget #JDK 11 download wget http://cdn.azul.com/zulu/bin/zulu11.39.15-ca-jdk11.0.7-linux_x64.tar.gz tar -zxvf zulu11.39.15-ca-jdk11.0.7-linux_x64.tar.gz mkdir /usr/local/java mv /usr/local/src/zulu11.39.15-ca-jdk11.0.7-linux_x64.tar.gz /usr/local/java
JAVA_HOME 설정
vi ~/.bash_profile #아래의 설정 추가 JAVA_HOME=/usr/local/java/zulu11.39.15-ca-jdk11.0.7-linux_x64 PATH=$PATH:$JAVA_HOME/bin export PATH JAVA_HOME source ~/.bash_profile java -version
keycloak download
wget --no-check-certificate https://downloads.jboss.org/keycloak/9.0.3/keycloak-9.0.3.zip
unzip 설치
#확인 rpm -qa | grep unzip yum list unzip #설치 yum install unzip
keycloak unzip
unzip keycloak-9.0.3.zip
#설치경로 /opt/keycloak-10.0.0