centos下 时间同步设置
2015-06-09 13:55
555 查看
1, [root@localhost html]# yum -y install ntpdate Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.ustc.edu.cn * extras: centos.ustc.edu.cn * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package ntpdate.x86_64 0:4.2.6p5-19.el7.centos will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================================================================== Installing: ntpdate x86_64 4.2.6p5-19.el7.centos base 82 k Transaction Summary =================================================================================================================================================================================== Install 1 Package Total download size: 82 k Installed size: 121 k Downloading packages: ntpdate-4.2.6p5-19.el7.centos.x86_64.rpm | 82 kB 00:00:01 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : ntpdate-4.2.6p5-19.el7.centos.x86_64 1/1 Verifying : ntpdate-4.2.6p5-19.el7.centos.x86_64 1/1 Installed: ntpdate.x86_64 0:4.2.6p5-19.el7.centos Complete! 2, [root@localhost etc]# rm -rf /etc/localtime 3, [root@localhost etc]# vi /usr/share/zoneinfo/Asia/Shanghai [root@localhost etc]# ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 4, [root@localhost etc]# ntpdate us.pool.ntp.org 9 Jun 13:47:47 ntpdate[5641]: step time server 74.120.8.2 offset -28798.525811 sec 5, 0 23 * * * ntpdate asia.pool.ntp.org >> /var/log/ntpdate.log
相关文章推荐
- 韦老师linux_3.42内核没有配置网卡,已解决
- CentOS下系统时间同步和时区的修改和设置
- linux 时间同步的2种方法
- 一天小结
- Linux下如何实现两个IP机器的文件复制
- Linux内核中C编程生僻用法(GNU C)
- linux中配合IS-IS搭建DHCP服务让客户机自动获取IP地址
- linux文件创建、查看、编辑命令
- linux 结构体 初始化
- linux释放内存
- linux使用crontab实现PHP执行定时任务
- Linux系统服务管理 ntsysv,日志, exec,xargs , screen ,curl,
- linux重新启动错误 could not update ICEauthority file
- 【linux】脚 使用 清空文件内容
- Linux Socket CAN
- Linux误删C基本运行库libc.so.6急救方法
- Linux查看硬件信息很Easy
- 临时设置 selinux
- Linux-常用文件和目录操作命令
- CentOS7源码编译安装QT时:Basic XLib functionality test failed!