This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已动态机器翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
This content has been machine translated dynamically.
This content has been machine translated dynamically.
This content has been machine translated dynamically.
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.
Este artigo foi traduzido automaticamente.
这篇文章已经过机器翻译.放弃
Translation failed!
时钟同步
您可以对 Citrix ADC 设备进行配置,使其本机时钟与网络时间协议 (NTP) 服务器同步。这样可以确保其时钟与网络中的其他服务器具有相同的日期和时间设置。NTP 使用用户数据报协议 (UDP) 端口 123 作为其传输层。必须在 NTP 配置文件中添加 NTP 服务器,以便设备定期从这些服务器获取更新。
如果您没有本地 NTP 服务器,可以在官方 NTP 站点 http://www.ntp.org 上查找公共开放访问的 NTP 服务器列表。
要在设备上配置时钟同步,请执行以下步骤:
-
登录到命令行并输入 shell 命令。
-
在 shell 提示符下,将 ntp.conf 文件从 /etc 目录复制到 /nsconfig 目录。如果该文件已存在于 /nsconfig 目录中,请确保从 ntp.conf 文件中删除以下条目:
restrict localhost
restrict 127.0.0.2
只有在将设备用作时间服务器时,才需要使用上述条目。但是,Citrix ADC 设备不支持此功能。
-
编辑 /nsconfig/ntp.conf,在文件服务器下键入所需 NTP 服务器的 IP 地址以及 restrict 条目。
-
在 /nsconfig 目录中创建名为 rc.netscaler 的文件(如果该目录中不存在此文件)。
-
通过添加以下条目来编辑 /nsconfig/rc.netscaler:
/usr/sbin/ntpd -c /nsconfig/ntp.conf -l /var/log/ntpd.log &
此条目可启动 ntpd 服务、检查 ntp.conf 文件,并在 /var/log 目录中记录消息。
注意:如果 Citrix ADC 设备与时间服务器之间的时间差超过 1000 秒,ntpd 服务将终止,并在 ADC 日志中记录一条消息。要避免此种情况,您需要使用 -g 选项启动 ntpd,以强制进行时间同步。在 /nsconfig/rc.netscaler 中添加以下条目:
/usr/sbin/ntpd -g -c /nsconfig/ntp.conf -l /var/log/ntpd.log &
如果不希望在有较大时间差时强制同步时间,可以手动设置日期,然后再次启动 ntpd。可以通过在 shell 中运行以下命令来检查设备与时间服务器之间的时间差:
ntpdate -q <IP address or domain name of the NTP server>
-
重新启动设备以启用时钟同步。
注意:如果要先启动时间同步,然后再重新启动设备,请在 shell 提示符下输入以下命令(已在步骤 5 中将该命令添加到 rc.netscaler 文件中):
/usr/sbin/ntpd -c /nsconfig/ntp.conf -l /var/log/ ntpd.log &
分享:
分享:
本文中包含的内容
This Preview product documentation is Citrix Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Citrix Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Citrix product purchase decisions.
If you do not agree, select Do Not Agree to exit.