2.3. 使用交互式安装程序在命令行中设置新实例
管理员可以通过回答有关新实例配置的问题,来使用 Directory Server 互动安装程序设置新实例。
如果要在安装过程中自定义其他设置,请使用 .inf 文件而不是交互式安装程序。详情请参阅 .inf 文件在命令行中设置新实例。
2.3.1. 前提条件 复制链接链接已复制到粘贴板!
- 服务器满足最新红帽目录服务器版本要求,如 Red Hat Directory Server 12 发行注记 所述。
2.3.2. 安装 Directory 服务器软件包 复制链接链接已复制到粘贴板!
使用以下步骤安装 Directory 服务器软件包。
前提条件
- 您启用了 RHEL 和目录服务器存储库,如 启用目录服务器存储库 中所述。
流程
启用
redhat-ds:12模块并安装目录服务器软件包:# dnf module enable redhat-ds:12 # dnf install 389-ds-base cockpit-389-ds
2.3.3. 使用互动安装程序创建实例 复制链接链接已复制到粘贴板!
本节介绍如何使用交互式安装程序创建新的 Directory Server 实例。
流程
启动交互式安装程序:
# dscreate interactive回答交互式安装程序的问题。
要使用安装程序中大部分问题后面的方括号中显示的默认值,请按 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]:注意默认情况下,Directory 服务器创建带有 Berkeley 数据库(BDB)的实例。要安装一个技术预览的 LMDB 实例,从 Directory Server 12.5 开始,请在下一步中设置
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注意您可以设置由
pwdhash生成的{algorithm}hash字符串来设置密码,而不是使用明文密码。例如:Enter the Directory Manager password: {PBKDF2-SHA512}100000$Haw7UDcBKUBejEjOTVHbiefT6cokHLo2$PeoP7W3B92Jzby7DGRkicovTN4LDGhnsC4EWCsv6crA2KA0Xn6rxPePX9UXhlM2utOPSQHeVpZzscNTx+fGi7A==在防火墙中打开所需端口:
# firewall-cmd --permanent --add-port={389/tcp,636/tcp}重新载入防火墙配置:
# firewall-cmd --reload