您的位置:首页 > 编程语言 > PHP开发

用命令设置esxi主机时间和配置NTP服务器

2016-03-08 17:00 609 查看
一、设置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/ntpd restart

/etc/init.d/lsassd restart 如果报错如下:



再重启两个服务:
/etc/init.d/hostd restart
/etc/init.d/vpxa restart
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  服务器 NTP 修改时间