centos7 ntp时间设置
2014-12-18 11:54
183 查看
安装ntp
yum -y install ntp
1、设置每天早晨5点钟同步时间:
# vi /etc/crontab
添加以下内容
0 5 * * * root /usr/sbin/ntpdate pool.ntp.org && /sbin/hwclock -w
2、设置ntp服务开机启动
# systemctl enable ntpd.service
3、启动ntp服务
# systemctl start ntpd.service
4、验证ntp服务已经运行
# pgrep ntpd
yum -y install ntp
1、设置每天早晨5点钟同步时间:
# vi /etc/crontab
添加以下内容
0 5 * * * root /usr/sbin/ntpdate pool.ntp.org && /sbin/hwclock -w
2、设置ntp服务开机启动
# systemctl enable ntpd.service
3、启动ntp服务
# systemctl start ntpd.service
4、验证ntp服务已经运行
# pgrep ntpd
相关文章推荐
- RHCE 系列(十):在 RHEL/CentOS 7 中设置 NTP(网络时间协议)服务器
- (OK) ntp——linux设置系统时间—RHEL—FEDORA—CENTOS
- Linux的时间设置与同步 (NTP)
- 为服务器设置ntp时间同步--ntp.api.bz
- CentOS设置时间
- centos 安装 ntpdate 并同步时间 | 麦冰棍
- Linux的时间设置与同步(NTP)
- Linux的时间设置与同步 (NTP)
- [linux] XEN里面的虚拟机centos无法使用date -s设置时间
- 局域网时间服务器的搭建[linux centos ntp]
- Linux时间设置与同步(NTP)
- Linux时间设置与NTP服务配置
- Ubuntu下启用root账户和设置固定IP && ntp解决虚拟机Ubuntu时间与windows时间不同步
- Linux时间设置与同步(NTP)
- centos设置系统时间
- Linux的时间设置与同步 (NTP)
- VMware ESX Server 上设置ntp同步时间
- Cisco交换机时间服务(NTP)的设置
- ntp同步时间设置
- 设置CentOS的时区和时间