使用采用概要文件的 Domino® 静默服务器设置
您可以使用服务器设置概要文件来静默设置 Domino 服务器,而不查看设置屏幕。可以在正在设置的服务器或从客户端系统上执行无提示设置。
开始之前
- 完成创建服务器设置概要文件过程。
- 完成任何暂挂的重新引导操作。
在服务器上执行无提示设置
过程
- 在服务器系统上安装 Domino® 服务器程序文件,但不要运行 Domino® 服务器设置程序。
- (仅限 UNIX)以您在 Domino 服务器安装期间指定的用户身份登录到 Domino 系统。这也是您将用于启动 Domino 服务器的用户。
-
如果概要文件使用需要密码的现有服务器、验证者或管理员标识,请创建一个包含需要密码的每种标识的 <keyword>=<password> 组合的文本文件。以下示例显示了使用每个关键字的文本文件的内容:
Server=passw0rd AddServer=passw0rd Certifier=passw0rd OUCertifier=passw0rd Administrator=passw0rd注: 将 .txt 文件放在 Domino 数据目录中。在 UNIX 服务器上,Domino 设置代码需要对该文件的读取访问权。 -
在服务器上的命令提示符下,切换到 Domino 数据目录。(如果安装了分区服务器,请切换到要设置的分区的数据目录。)然后,输入以下命令:
其中<path_to_Domino_server_executeable> -silent <path_to_profile_file> =<path_to_partition_notes.ini> <path_to_txt_file><path_to_Domino_server_executeable>是 Domino 服务器可执行文件的完整路径。<path_to_profile_file>是 .pds 概要文件的路径。如果概要文件不在根目录中,请指定它的完整路径。<path_to_partition_notes.ini>是分区服务器的数据目录中 notes.ini 文件的路径。在路径前加上等号 (=)。<path_to_txt_file>是您在 Domino 服务器数据目录中创建的用于指定标识密码的 .txt 文件的路径。Windows 服务器上的示例(单个服务器,无密码 txt 文件):c:\Domino\nserver.exe -silent c:\temp\Profile.pdsWindows 服务器上的示例(分区服务器,密码 txt 文件):c:\Domino\nserver.exe -silent c:\temp\Profile1.pds =c:\Domino\Data1\notes.ini c:\Domino\Data1\password.txtUNIX 服务器上的示例(单个服务器,无密码 txt 文件):/opt/hcl/domino/bin/server -silent /tmp/Profile.pdsUNIX 服务器上的示例(分区服务器,密码 txt 文件):/opt/hcl/domino/bin/server -silent /tmp/Profile1.pds =/local/notesdata1/notes.ini /local/notesdata1/password.txt注: 输入nserver -help或server -help将显示使用服务器设置概要文件时可用的参数。 - 检查 Domino® 数据目录中的 errorlog.txt 文件,以确认设置是否完整,或查看设置过程中生成的所有错误消息。
从具有 Domino® Administrator 的 Windows™ 客户端上执行静默安装
过程
- 确保在客户端系统上安装 Domino® Administrator 时选择了远程服务器设置。
- 在服务器系统上安装 Domino® 服务器程序文件,但不要运行 Domino® 服务器设置程序。
- (仅限 UNIX 服务器)以您在 Domino 服务器安装期间指定的用户身份登录到 Domino 系统。这也是您将用于启动 Domino 服务器的用户。
-
在服务器上的命令提示符下,切换到 Domino 数据目录。(如果安装了分区服务器,请切换到要设置的分区的数据目录。)然后,输入以下命令,将服务器置于侦听模式:
Windows™ 服务器上的示例:<full_path_to_Domino_server_executeable> -listen
UNIX™ 服务器上的示例:C:\Domino\nserver -listen/opt/hcl/domino/bin/server -listen注: 输入nserver -help或server -help将显示使用服务器设置概要文件时可用的参数。 -
如果概要文件使用需要密码的现有服务器、验证者或管理员标识,请在 Domino 服务器上创建一个包含每种标识的 <keyword>=<password> 组合的文本文件。以下示例显示了使用每个关键字(标识类型)的文本文件的内容:
Server=passw0rd AddServer=passw0rd Certifier=passw0rd OUCertifier=passw0rd Administrator=passw0rd注: 将 .txt 文件放在 Domino 数据目录中。在 UNIX 服务器上,Domino 设置代码需要对该文件的读取访问权。 -
在 Windows 客户端上的命令提示符下,切换到 Notes 程序目录并输入以下命令:
其中serversetup -silent <path_to_profile_file> <path_to_txt_file> -remote <serveraddress> =<path_to_partition_notes.ini><path_to_profile_file>是 Windows 客户端上 .pds 概要文件的路径。如果概要文件不在根目录中,请指定它的完整路径。<path_to_txt_file>是您在 Domino 服务器数据目录中创建的用于指定标识密码的 .txt 文件的路径。<serveraddress>是要设置的服务器的主机名或网络地址。<path_to_partition_notes.ini>是分区服务器的数据目录中 notes.ini 文件的路径。在路径前加上等号 (=)。Windows 服务器上的示例(单个服务器,无密码 txt 文件):serversetup -silent C:\Profile.pds -remote mail2.renovations.comWindows 服务器上的示例(分区服务器,密码 txt 文件):serversetup -silent C:\Profile1.pds C:\password.txt -remote mail2.renovations.com =C:\Domino\Data1\notes.iniUNIX 服务器上的示例(单个服务器,无密码 txt 文件):serversetup -silent C:\Profile.pds -remote mail2.renovations.comUNIX 服务器上的示例(分区服务器,密码 txt 文件):serversetup -silent C:\Profile1.pds /local/notesdata/password.txt -remote mail2.renovations.com =/local/notesdata1/notes.ini注: 输入nserver -help或server -help将显示使用服务器设置概要文件时可用的参数。 - 检查 Notes® 数据目录中的 errorlog.txt 文件,以确认设置是否完整,或查看设置过程中生成的所有错误消息。
-
设置完成后,切换到客户端上的 Notes 程序目录并输入以下命令以停止 Domino 服务器上的侦听器:
例如:serversetup -q <serveraddress>serversetup -q mail2.renovations.com
从没有安装 Domino® Administrator 的 Windows™ 客户端上(或从 UNIX™ 工作站上)执行静默安装
过程
- 在服务器系统上安装 Domino® 服务器程序文件,但不要运行 Domino® 服务器设置程序。
- (仅限 UNIX 服务器)以您在 Domino 服务器安装期间指定的用户身份登录到 Domino 系统。这也是您将用于启动 Domino 服务器的用户。
-
在服务器上的命令提示符下,切换到 Domino 数据目录。(如果安装了分区服务器,请切换到要设置的分区的数据目录。)然后,输入以下命令,将服务器置于侦听模式:
Windows™ 服务器上的示例:<full_path_to_Domino_server_executeable> -listen
UNIX™ 服务器上的示例:C:\Domino\nserver -listen/opt/hcl/domino/bin/server -listen注: 输入nserver -help或server -help将显示使用服务器设置概要文件时可用的参数。 - 在客户端系统上,安装 Java™ 运行时环境。
- 在客户端系统上创建一个临时目录。例如,在命令提示符下输入下列内容:
- 在 Windows™ 客户端上:
mkdir c:\temp - 在 UNIX™ 工作站上:
mkdir /temp
- 在 Windows™ 客户端上:
- 请执行下列其中一项操作:
- 在 Windows™ 客户端上,将远程设置文件
cfgdomserver.jar、jhall.jar和remotesetup.cmd从服务器复制到您在客户端系统上创建的目录中。这些文件位于服务器上的C:\<Domino program directory>中。 - 在 UNIX™ 工作站上,将远程设置文件
cfgdomserver.jar、jhall.jar和remotesetup从服务器复制到您在工作站上创建的目录中。这些文件位于以下目录中:IBM® AIX® 服务器上的
/<Domino program directory>/notes/latest/ibmpow/Linux™ 服务器上的
/<Domino program directory>/notes/latest/linux/
- 在 Windows™ 客户端上,将远程设置文件
-
如果概要文件使用需要密码的现有服务器、验证者或管理员标识,请在 Domino 服务器上创建一个包含每种标识的 <keyword>=<password> 组合的文本文件。以下示例显示了使用每个关键字(标识类型)的文本文件的内容:
Server=passw0rd AddServer=passw0rd Certifier=passw0rd OUCertifier=passw0rd Administrator=passw0rd注: 将 .txt 文件放在 Domino 数据目录中。在 UNIX 服务器上,Domino 设置代码需要对该文件的读取访问权。 -
在客户端上的命令提示符下,切换到 Notes 程序目录并输入以下命令:
其中remotesetup -silent <path_to_profile_file> <path_to_txt_file> -remote <serveraddress> =<path_to_partition_notes.ini><path_to_profile_file>是客户端上 .pds 概要文件的路径。如果概要文件不在根目录中,请指定它的完整路径。<path_to_txt_file>是您在 Domino 服务器数据目录中创建的用于指定标识密码的 .txt 文件的路径。<serveraddress>是要设置的服务器的主机名或网络地址。<path_to_partition_notes.ini>是分区服务器的数据目录中 notes.ini 文件的路径。在路径前加上等号 (=)。Windows 服务器上的示例(单个服务器,无密码 txt 文件):remotesetup -silent C:\myprofile.pds -remote mail2.renovations.comWindows 服务器上的示例(分区服务器,密码 txt 文件):remotesetup -silent C:\Profile1.pds C:\password.txt -remote mail2.renovations.com =C:\Domino\Data1\notes.iniUNIX 服务器上的示例(单个服务器,无密码 txt 文件):remotesetup -silent c:\myprofile.pds -remote mail2.renovations.comUNIX 服务器上的示例(分区服务器,密码 txt 文件):remotesetup -silent c:\Profile1.pds /local/notesdata1/password.txt -remote mail2.renovations.com =/local/notesdata1/notes.ini注: 输入nserver -help或server -help将显示使用服务器设置概要文件时可用的参数。 - 检查 errorlog.txt 文件,以确认设置是否完整,或查看设置过程中生成的所有错误消息。
-
设置完成后,切换到客户端上的 Notes 程序目录并输入以下命令以停止 Domino 服务器上的侦听器:
例如:serversetup -q <serveraddress>serversetup -q mail2.renovations.com