Windows Server 2008 R2 NTP时间服务器的配置
2018-01-15 23:52
393 查看
1、在开始菜单栏中,点击“运行”输入regedit,打开Windows 注册表
2、设定成为NTP 服务器类型。
修改登陆档案中: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters"
[Type]设定值修改为”NTP”。
3、设定授权时间服务器
修改登录档中: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config"
[AnnounceFlags]修改设定值为5。
4、启用NTP服务器
修改登录档中: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer"
[Enabled]数值修改为1。
5、重起Windows Time服务
打开开始菜单输入“CMD”在命令行模式下输入:
net stop w32time && net start w32time 重启一下win32time服务。
注意:
1、在系统服务中设置W32Time服务启动模式为自动。
2、确定防火墙允许UDP123端口访问。
打开 UDP:123端口
打开开始菜单输入“CMD”在命令行模式下输入:
netsh firewall add portopening protocol = UDP port =123 name = NTPSERVER
将esxi主机配置为NTP客户端
1、通过web client登陆vcenter server,按下图进行配置
2、启用esxi命令行
按alt+f1切换命令界面
3、修改esxi配置文件
1.vi /etc/ntp.conf添加下列内容
tos maxdist 30
2.保存并推出
3.设置 /etc/likewise/lsassd.conf的写权限
chmod +w /etc/likewise/lsassd.conf
4.vi /etc/likewise/lsassd.conf 找到下列配置项去掉注释和前面的空格,
sync-system-time = no
5.保存并推出.
6.执行下面的命令
/sbin/auto-backup.sh
7.重启下列两个服务
/etc/init.d/lsassd restart
/etc/init.d/ntpd restart
2、设定成为NTP 服务器类型。
修改登陆档案中: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters"
[Type]设定值修改为”NTP”。
3、设定授权时间服务器
修改登录档中: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config"
[AnnounceFlags]修改设定值为5。
4、启用NTP服务器
修改登录档中: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer"
[Enabled]数值修改为1。
5、重起Windows Time服务
打开开始菜单输入“CMD”在命令行模式下输入:
net stop w32time && net start w32time 重启一下win32time服务。
注意:
1、在系统服务中设置W32Time服务启动模式为自动。
2、确定防火墙允许UDP123端口访问。
打开 UDP:123端口
打开开始菜单输入“CMD”在命令行模式下输入:
netsh firewall add portopening protocol = UDP port =123 name = NTPSERVER
将esxi主机配置为NTP客户端
1、通过web client登陆vcenter server,按下图进行配置
2、启用esxi命令行
按alt+f1切换命令界面
3、修改esxi配置文件
1.vi /etc/ntp.conf添加下列内容
tos maxdist 30
2.保存并推出
3.设置 /etc/likewise/lsassd.conf的写权限
chmod +w /etc/likewise/lsassd.conf
4.vi /etc/likewise/lsassd.conf 找到下列配置项去掉注释和前面的空格,
sync-system-time = no
5.保存并推出.
6.执行下面的命令
/sbin/auto-backup.sh
7.重启下列两个服务
/etc/init.d/lsassd restart
/etc/init.d/ntpd restart
相关文章推荐
- Windows Server 2008 R2 NTP时间服务器配置
- windows Server 2008 R2 IE增强安全配置正在阻止来自下列网站的内容
- Windows Server 2008 R2中关闭“IE增强的安全配置”
- 【服务器运维】Windows Server 2008 R2 下配置证书服务器和HTTPS
- Windows Server 2008 R2 配置AD(Active Directory)域控制器
- Windows Server 2008 R2 远程桌面服务配置和授权激活
- 数据库_安装和配置之十四__(Windows Server 2008 R2 SP1英文版)
- 搞定windows server 2008 R2 中IE8的增强安全配置功能
- IIS7 配置ASP.NET 2.0, WCF, ASP.NET MVC(适用于vista/win7 /windows server 2008/windows server 2008 R2)
- 在windows server 2008 R2 64bit上面配置PI OPC Server的DCOM
- Windows Server 2008 R2远程桌面服务配置和授权激活
- Windows Server 2008 R2 配置Exchange 2010邮件服务器并使用EWS发送邮件
- Windows Server 2008 R2 配置AD(Active Directory)域控制器
- windows server 2008 R2 配置mediawiki
- windows server 2008 r2 IIS 6 元数据库与IIS 6 配置的兼容性 解决方案
- windows server 2008 R2 安装后的配置总结
- Windows Server 2008 R2 安装及配置指南
- Windows server 2008 r2配置远程连接数限制
- IIS7.0 Windows Server 2008 R2 下配置证书服务器和HTTPS方式访问网站的教程图文详解
- Windows server 2008 r2下MySQL5.7.17 winx64安装版配置方法图文教程