linux时间同步服务NTP安装配置教程
来源:互联网 发布:直通网络测试仪怎么用 编辑:程序博客网 时间:2024/06/07 13:06
linux的Ntp时间同步服务安装
1.rpm -qa | grep ntpd >>>> 没有安装此服务 >>>yum install ntp >>> 安装完成
2.修改配置
2.1 主服务器配置
vi /etc/ntp.conf
去掉这个注释,将地址改成网段地址
restrict 192.168.0.0 mask 255.255.255.0 nomodify notrap
注释掉这几个
#server 0.centos.pool.ntp.org iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst
添加以下配置内容
server 127.127.1.0
fudge 127.127.1.0 startum 10
2.2 vi /etc/sysconfig/ntpd 加上下面内容,用于配置boot时间和系统时间同步
SYNC_HWCLOCK=yes
2.3启动ntpd服务器
sudo service ntpd start
sudo service ntpd status
chkconfig ntpd on
chkconfig --list | grep ntpd
3.客户端配置(从节点配置)
3.1使用root用户操作或sudo
3.2输入 crontab -e 命令进入编辑状态,然后输入以下内容(该任务保存在目录 /var/spool/cron 下,必须用root用户才能看到)
* * * * * /usr/sbin/ntpdate master
- linux时间同步服务NTP安装配置教程
- linux时间同步ntp服务的安装与配置
- linux NTP 配置时间同步
- Linux安装ntp同步时间
- NTP 服务介绍和配置时间同步
- 配置NTP服务时间同步(suse)
- linux之NTP时间同步服务介绍
- NTP服务同步时间
- ntp同步时间服务
- ntp时间服务同步
- Linux配置NTP服务器,时间同步
- NTP时间同步配置
- NTP 时间同步 配置
- NTP配置时间同步
- Linux时间设置与NTP服务配置
- linux ntp同步时间
- linux ntp时间同步
- linux ntp时间同步
- mysql中的知识点二
- 深入理解 Android 卷I
- ERROR:language "plpgsql" does not exist
- Fractions Again?! UVA
- 欢迎使用CSDN-markdown编辑器
- linux时间同步服务NTP安装配置教程
- xfire 开发实例
- 欢迎使用CSDN-markdown编辑器
- mib文件的编写
- YII2.0框架(四) 数据库操作yii\db\Commond
- 深度学习Matlab工具箱代码注释——cnntrain.m
- react+wepack入门(1)
- Servlet线程安全问题
- 二分查找