2.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 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
字符串来设置密码,而不是使用明文密码。在防火墙中打开所需端口:
# firewall-cmd --permanent --add-port={389/tcp,636/tcp}
重新载入防火墙配置:
# firewall-cmd --reload