用命令设置esxi主机时间和配置NTP服务器
一、设置esxi主机时间设置esxi主机时间为 2016 年03月8日16:01:更改esxi系统时间:~ #esxcli system time set -d 08 -H 16 -m 01 -M 03 -y 2016如果同步系统时间到主板上,使用下面命令:~ # esxcli system time get
更改esxi主机主板上的时间:~ # esxcli hardware clock set -d 10 -H 10 -m 18 -M 04 -y 2016 如果同步主板到esxi系统上,使用下面命令:~ # esxcli system time get
二、配置NTP服务器:
[*]打开esxi的ssh功能,
添写自己的NTP服务器
[*]vi /etc/ntp.conf 加入tos maxdist 30 保存。
[*]vi /etc/likewise/lsassd.conf 找sync一行,修改为sync-system-time = yes 保存退出。
[*]重启服务
/etc/init.d/ntpdrestart
/etc/init.d/lsassd restart 如果报错如下:
再重启两个服务:
/etc/init.d/hostdrestart
/etc/init.d/vpxarestart
{:6_388:}{:6_388:}{:6_388:}{:6_388:} {:6_406:}{:6_406:}{:6_406:}
页:
[1]