当前位置:网站首页>Debian 10 NTP Service Configuration
Debian 10 NTP Service Configuration
2022-08-02 03:34:00 【live and dream】
目录
三、Test screenshots and scoring requirements
一、题目要求
NTP
安装 ntp(使用其他 ntp 软件,None of the following features will be scored);
在 AppSrv 和 StorageSrv 上创建 CRON 计划任务;
使用 ntpdate 指令,每隔五分钟进行一次时间同步;
二、配置过程
IspSrv
1.下载ntp服务
[email protected]:~# apt -y install ntp2.进入ntp配置文件
[email protected]:~# vim /etc/ntp.conf 3.修改ntp配置文件
23 #pool 0.debian.pool.ntp.org iburst #注释,Turn off sync from the web
24 #pool 1.debian.pool.ntp.org iburst
25 #pool 2.debian.pool.ntp.org iburst
26 #pool 3.debian.pool.ntp.org iburst
27 server 127.127.1.0 #server指定ntp服务器的地址 将当前主机作为时间服务器
28 fudge 127.127.1.0 stratum 5 #fudge设置时间服务器的层级 stratum 0~15 ,0:表示顶级 , 10:通常用于给局域网主机提供时间服务
#注意:fudge必须和server一块用, 而且是在server的下一行
41 #restrict -4 default kod notrap nomodify nopeer no query limited #注释
42 #restrict -6 default kod notrap nomodify nopeer no query limited
46 restrict 81.6.63.0 mask 255.255.255.0 #Which network segments are allowed to sync time here
4.重启ntp服务
[email protected]:~# systemctl restart ntp.service5.放开防火墙端口
[email protected]:~# iptables -A INPUT -p udp --dport 123 -j ACCEPT
[email protected]:~# iptables -A OUTPUT -p udp --sport 123 -j ACCEPT 6.保存规则
[email protected]:~# netfilter-persistent saveRouterSrv
1.放开iptableson the corresponding port
[email protected]:~# iptables -A FORWARD -p udp --dport 123 -j ACCEPT2.保存规则
[email protected]:~# netfilter-persistent saveAppSrv
1.安装ntpdate指令
[email protected]:~# apt -y install ntpdate2.进入CRON服务配置文件
[email protected]:~# vim /etc/crontab 3.创建 CRON 计划任务,每5Minutes to sync automatically4.
*/5 * * * * root /usr/sbin/ntpdate 81.6.63.100 #每5分钟到81.6.63.100自动同步时间4.重新启动下CRON计划任务
[email protected]:~# systemctl restart cron.service5.Open the port corresponding to the firewall
[email protected]:~# iptables -A INPUT -p udp --sport 123 -j ACCEPT
[email protected]:~# netfilter-persistent save
StorageSrv
1.安装ntpdate指令
[email protected]:~# apt -y install ntpdate2.进入CRON服务配置文件
[email protected]:~# vim /etc/crontab 3.创建 CRON 计划任务,每5Minutes to sync automatically4.
*/5 * * * * root /usr/sbin/ntpdate 81.6.63.100 #每5分钟到81.6.63.100自动同步时间4.重新启动下CRON计划任务
[email protected]:~# systemctl restart cron.service5.Open the port corresponding to the firewall
[email protected]:~# iptables -A INPUT -p udp --sport 123 -j ACCEPT
[email protected]:~# netfilter-persistent save三、Test screenshots and scoring requirements
测试:IspSrv

评分细则:

测试:AppSrv与StorageSrv


评分细则:

边栏推荐
- DAY-1 | 求两个正整数的最大公约数与最小公倍数之和——辗转相除法
- 科研试剂DMPE-PEG-Mal 二肉豆蔻酰磷脂酰乙醇胺-聚乙二醇-马来酰亚胺
- getattr()函数解析
- RHCSA第二天
- MySQL占用CPU过高,排查原因及解决的多种方式法
- @Accessors 注解详解
- DSPE-PEG-DBCO 磷脂-聚乙二醇-二苯并环辛炔 一种线性杂双官能聚乙二醇化试剂
- [Basic Tutorial of Remote Control Development 1] Crazy Shell Open Source Formation Drone-GPIO (Remote Control Indicator Light Control)
- MySQL中字符串比较大小(日期字符串比较问题)
- Mysql8.0安装教程
猜你喜欢

「PHP基础知识」空值(null)的使用

化学试剂磷脂-聚乙二醇-羟基,DSPE-PEG-OH,DSPE-PEG-Hydroxyl,MW:5000

Problems when yolov5 calls ip camera

DOM destruction and reproduction experiment

parser = argparse.ArgumentParser() parsing

Keil development environment installation tutorial

HCIP-第十天-BGP综合实验
![[Remote Control Development Basic Tutorial 3] Crazy Shell Open Source Formation UAV-ADC (Joystick Control)](/img/8f/4944a31ca7066f300ef1ffe2d226e1.png)
[Remote Control Development Basic Tutorial 3] Crazy Shell Open Source Formation UAV-ADC (Joystick Control)

亚马逊卖家怎么提升转化率

MySQL常见的索引
随机推荐
Keil开发环境安装教程
【深度学习】从LeNet-5识别手写数字入门深度学习
TRICK second bullet
2022年比若依更香的开源项目
oracle内连接和外连接
mysql中exists的用法详解
yolov5调用ip摄像头时出现的问题
A senior test engineer asked me these questions as soon as the interview came
@Autowired与@Resource区别
知识工程作业2:知识工程相关领域介绍
动态代理工具类
赶紧进来!!!教你用C语言写三子棋小游戏
redis进行持久化时,有新的写操作将如何解决——写时复制
Chapter 10 Clustering
删库后!除了跑路还能干什么?
bgp机房的动态路由和静态路由的区别
源码构建LAMP环境-1
2022.7.30 js notes Operators and flow controllers, loops
AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘
MySQL8.0与MySQL5.7差异分析