码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2016-03-08 21:46:05      阅读:1475      评论:0      收藏:0      [点我收藏+]

标签:ntp服务器   修改时间   esxi   服务器   hardware   system   

一、设置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服务器:


  1. 打开esxi的ssh功能,


    技术分享

    技术分享

    技术分享

    技术分享

    技术分享

    技术分享

    添写自己的NTP服务器

    技术分享

  2. vi /etc/ntp.conf 加入tos maxdist 30 保存。

    技术分享

  3. vi /etc/likewise/lsassd.conf 找sync一行,修改为sync-system-time = yes 保存退出。

    技术分享

    技术分享

  4. 重启服务

/etc/init.d/ntpd  restart

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

技术分享

再重启两个服务:

/etc/init.d/hostd  restart

/etc/init.d/vpxa  restart




本文出自 “冯晓庆的博客” 博客,请务必保留此出处http://fengyunshan911.blog.51cto.com/995251/1748835

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

标签:ntp服务器   修改时间   esxi   服务器   hardware   system   

原文地址:http://fengyunshan911.blog.51cto.com/995251/1748835

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!