ntp服务
2016-07-15 13:45
489 查看
1、检查是否已安装ntp[root@localhost ~]# rpm -qa ntp2、安装ntp以及ntpdateyum -y install ntp ntpdate3、修改ntp配置文件vim /etc/ntp.conf#restrict 192.168.1.0 mask 255.255.255.0 nomodify notraprestrict 192.168.1.0/24 mask 255.255.255.0 nomodify notrap加入的这行允许哪些client能够与ntp服务器进行时间同步
server ntp1.jst.mfeed.ad.jp iburst加入此行,多一条时间同步服务器
4、启动ntp服务器service ntpd startchkconfig ntpd on[root@RS2 tmp]# ntpq -p remote refid st t when poll reach delay offset jitter==============================================================================*dns1.synet.edu. 202.118.1.47 2 u 78 64 376 38.169 38.259 33.424+ntp1.jst.mfeed. 133.243.236.17 2 u 67 64 377 37.098 32.521 19.811
client:只需要安装ntpdate即可操作:ntpdate 192.168.1.11
参考:https://www.server-world.info/en/note?os=CentOS_6&p=ntp&f=1
server ntp1.jst.mfeed.ad.jp iburst加入此行,多一条时间同步服务器
4、启动ntp服务器service ntpd startchkconfig ntpd on[root@RS2 tmp]# ntpq -p remote refid st t when poll reach delay offset jitter==============================================================================*dns1.synet.edu. 202.118.1.47 2 u 78 64 376 38.169 38.259 33.424+ntp1.jst.mfeed. 133.243.236.17 2 u 67 64 377 37.098 32.521 19.811
client:只需要安装ntpdate即可操作:ntpdate 192.168.1.11
参考:https://www.server-world.info/en/note?os=CentOS_6&p=ntp&f=1
相关文章推荐
- php中echo() print() print-r()区别
- php中return和exit的区别
- php中时间戳和日期格式的转换
- php为什么不能用empty($_POST)来判断是否有传值
- PHP进程及进程间通信
- php中curl_multi函数集的用法
- laravel: command not found问题解决方案
- phpexcel的使用方法详细介绍
- 利用PHP的debug_backtrace函数,实现PHP文件权限管理、动态加载
- 【PHP手册】 PHP debug_backtrace() 函数
- PHP 的异常处理、错误处理:error_reporting,try-catch,trigger_error,set_error_handler,set_exception_handler,register_shutdown_function
- PHP常量详解:define和const的区别
- PHP命名空间入门教程
- 五种常见的 PHP 设计模式
- 【旧代码整理】代码说明 /project/run.php 部分
- php文件上传和下载相关知识
- phpstorm + xdebug + Xdebug helper 调试php
- 【旧代码整理】代码说明 /project/init.php 部分
- phpstorm快捷键及设置总结
- phpstorm开发中常用快捷键