用命令设置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
更改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
相关文章推荐
- 小心服务器内存居高不下的元凶--WebAPI服务
- SUSE 11 & RedHat 6.1 & HP-UX B.11.31 NTP时间同步服务实施案例集锦
- 运维入门
- 如何在 Linux 上安装、配置 NTP 服务器和客户端?
- 利用开源软件打造自己的全功能远程工具
- Linux5.9无人值守安装
- 数据中心和云未来的十二大趋势
- 用vsftp快速搭建ftp服务器
- Linux快速构建apache web服务器
- 服务器监控策略浅谈
- Chrony:一个类 Unix 系统上 NTP 客户端和服务器替代品
- 如何降低服务器采购成本 原理分析
- 建议的服务器分区办法
- 服务器托管六大优势分析
- Erlang实现的一个Web服务器代码实例
- 服务器技术全面解析
- 保护DNS服务器的几点方法小结
- 我国成为全球第二大服务器消费国
- 服务器 安全检查要点[星外提供]