Linux-NTP服务器

主/被动
服务器/客户机
广播

安装

yum -y install ntp
systemctl { start | stop | status | restart } ntpd
systemctl { enable | disable }  ntpd

配置

配置文件:/etc/ntp.conf

restict 192.168.1.76 nomodify notrap nopeer noquery
# 本机限制及客户端不能修改
restrict 192.168.1.0 mask 255.255.255.0 nomodify
# 网段信息设置 为这个网段提供网络校时 且不能修改服务器参数

server 127.127.1.0
# 设置服务器(本机)
fudge 127.127.1.0 stratum 10
# 内部环回地址   stratum是第几层

# 完成后重启 systemctl restrat ntpd

# 修改日期date -s "2020-5-8 9:00"


# linux同步时间
yum -y install ntpdate
ntpdate [服务器ip]
# 暂时更新
yum -y install ntp
vim /etc/ntp.conf
server 192.168.1.76
ntpq -p 
# 查看连接信息
# 永久更新
上一篇 windows桌面美化
下一篇 Linux-邮件服务器
ZYX

ZYX管理员

无论你遇见谁他都是你生命中该出现的 绝非偶然

本月创作热力图

目录
文章列表
1 新年快乐
新年快乐
2
Linux-数据库服务器安装
Linux-数据库服务器安装
3
为网站添加鼠标特效,粒子特效,下方计时
为网站添加鼠标特效,粒子特效,下方计时
4
使用可道云KodExplorer在linux搭建个人云盘
使用可道云KodExplorer在linux搭建个人云盘
5
蓝桥练习-持续更新-已停止
蓝桥练习-持续更新-已停止