ntp服务的安装和设置
服务器时间的手动设置 查看时刻:
1 | [root@localhost ~]# date |
修改时间:
1 | [root@localhost ~]# date -s 2011/02/28 |
ntp服务的安装 安装:
1 | [root@localhost ~]# yum install ntp |
ntp时间服务器的设置:
1 | [root@localhost ~]# vi /etc/ntp.conf |
ntp服务启动/关闭/重启:
1 | [root@localhost ~]# service ntpd start |
开机自动启动设置:
1 | [root@localhost ~]# chkconfig ntpd on |
手动同步时间:
1 | [root@localhost ~]# ntpdate time.windows.com |