3.2. 使用交互式安装程序在命令行上设置新实例


管理员可以通过回答有关新实例配置的问题,使用 Directory 服务器互动安装程序来设置新实例。

如果要在安装过程中自定义其他设置,请使用 .inf 文件而不是交互式安装程序。详情请参阅 .inf 文件在命令行中设置新实例

3.2.1. 先决条件

3.2.2. 使用交互式安装程序创建实例

本节介绍如何使用交互式安装程序创建新的目录服务器实例。

流程

  1. 启动交互式安装程序:

    # dscreate interactive
    Copy to Clipboard Toggle word wrap
  2. 回答交互式安装程序的问题。

    要使用安装程序中大部分问题后面的方括号中显示的默认值,请按 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. [mdb]:
    
    Enter the lmdb database size [14.1 GB]: 10 G
    
    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 Toggle word wrap
    注意

    您可以设置由 pwdhash 生成的 {algorithm}hash 字符串来设置密码,而不是使用明文密码。

    例如:

    Enter the Directory Manager password: {PBKDF2-SHA512}100000$Haw7UDcBKUBejEjOTVHbiefT6cokHLo2$PeoP7W3B92Jzby7DGRkicovTN4LDGhnsC4EWCsv6crA2KA0Xn6rxPePX9UXhlM2utOPSQHeVpZzscNTx+fGi7A==
    Copy to Clipboard Toggle word wrap
  3. 在防火墙中打开所需端口:

    # firewall-cmd --permanent --add-port={389/tcp,636/tcp}
    Copy to Clipboard Toggle word wrap
  4. 重新载入防火墙配置:

    # firewall-cmd --reload
    Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat