2.3. 대화형 설치 프로그램을 사용하여 명령줄에서 새 인스턴스 설정
관리자는 Directory Server 대화형 설치 관리자를 사용하여 새 인스턴스의 구성에 대한 질문에 대답하여 새 인스턴스를 설정할 수 있습니다.
설치 중에 추가 설정을 사용자 지정하려면 대화형 설치 프로그램 대신 .inf
파일을 사용합니다. 자세한 내용은 .inf
파일을 사용하여 명령줄에서 새 인스턴스 설정을 참조하십시오.
2.3.1. 사전 요구 사항
- 이 서버는 Red Hat Directory Server 12 릴리스 노트에 설명된 대로 최신 Red Hat Directory Server 버전의 요구 사항을 충족합니다.
2.3.2. Directory Server 패키지 설치
다음 절차에 따라 Directory Server 패키지를 설치합니다.
사전 요구 사항
- Directory Server 리포지토리 활성화에 설명된 대로 RHEL 및 Directory Server 리포지토리를 활성화했습니다.
절차
redhat-ds:12
모듈을 활성화하고 Directory Server 패키지를 설치합니다.dnf module enable redhat-ds:12 dnf install 389-ds-base cockpit-389-ds
# dnf module enable redhat-ds:12 # dnf install 389-ds-base cockpit-389-ds
Copy to Clipboard Copied!
2.3.3. 대화식 설치 프로그램을 사용하여 인스턴스 생성
이 섹션에서는 대화형 설치 관리자를 사용하여 새 Directory Server 인스턴스를 만드는 방법을 설명합니다.
절차
대화형 설치 프로그램을 시작합니다.
dscreate interactive
# dscreate interactive
Copy to Clipboard Copied! 대화형 설치 프로그램의 질문에 대답합니다.
설치 프로그램에서 대부분의 질문 뒤에 대괄호로 표시된 기본값을 사용하려면 값을 입력하지 않고 Enter 를 누릅니다.
Install Directory Server (interactive mode) =========================================== Enter system's hostname [server.example.com]: Enter the instance name [server]: instance_name Enter port number [389]: Create self-signed certificate database [yes]: Enter secure port number [636]: Enter Directory Manager DN [cn=Directory Manager]: Enter the Directory Manager password: password Confirm the Directory Manager Password: password Choose whether mdb or bdb is used. [bdb]:
Install Directory Server (interactive mode) =========================================== Enter system's hostname [server.example.com]: Enter the instance name [server]: instance_name Enter port number [389]: Create self-signed certificate database [yes]: Enter secure port number [636]: Enter Directory Manager DN [cn=Directory Manager]: Enter the Directory Manager password: password Confirm the Directory Manager Password: password Choose whether mdb or bdb is used. [bdb]:
Copy to Clipboard Copied! 참고기본적으로 Directory Server는 Berkeley Database(BDB)를 사용하여 인스턴스를 생성합니다. Directory Server 12.5로 시작하는 기술 프리뷰인 LMDB 인스턴스를 설치하려면
mdb
를 설정하고 다음 단계에서 LMDB 데이터베이스 크기를 바이트 단위로 설정합니다.Enter the database suffix (or enter "none" to skip) [dc=server,dc=example,dc=com]: dc=example,dc=com Create sample entries in the suffix [no]: Create just the top suffix entry [no]: yes Do you want to start the instance after the installation? [yes]: Are you ready to install? [no]: yes
Enter the database suffix (or enter "none" to skip) [dc=server,dc=example,dc=com]: dc=example,dc=com Create sample entries in the suffix [no]: Create just the top suffix entry [no]: yes Do you want to start the instance after the installation? [yes]: Are you ready to install? [no]: yes
Copy to Clipboard Copied! 참고일반 텍스트로 암호를 설정하는 대신
pwd
hash유틸리티로 생성된 {algorithm} 해시
문자열을 설정할 수 있습니다. 예를 들면 다음과 같습니다.Enter the Directory Manager password: {PBKDF2-SHA512}100000$Haw7UDcBKUBejEjOTVHbiefT6cokHLo2$PeoP7W3B92Jzby7DGRkicovTN4LDGhnsC4EWCsv6crA2KA0Xn6rxPePX9UXhlM2utOPSQHeVpZzscNTx+fGi7A==
Enter the Directory Manager password: {PBKDF2-SHA512}100000$Haw7UDcBKUBejEjOTVHbiefT6cokHLo2$PeoP7W3B92Jzby7DGRkicovTN4LDGhnsC4EWCsv6crA2KA0Xn6rxPePX9UXhlM2utOPSQHeVpZzscNTx+fGi7A==
Copy to Clipboard Copied! 방화벽에서 필요한 포트를 엽니다.
firewall-cmd --permanent --add-port={389/tcp,636/tcp}
# firewall-cmd --permanent --add-port={389/tcp,636/tcp}
Copy to Clipboard Copied! 방화벽 구성을 다시 로드합니다.
firewall-cmd --reload
# firewall-cmd --reload
Copy to Clipboard Copied!