成人在线亚洲_国产日韩视频一区二区三区_久久久国产精品_99国内精品久久久久久久

您的位置:首頁技術文章
文章詳情頁

centos7安裝chronyd服務方式

瀏覽:1788日期:2023-10-01 20:59:26
目錄centos7安裝chronyd服務Centos7使用chronyd進行時鐘同步安裝配置文件啟動服務及時區設置驗證服務手動同步時間手動設置時間總結centos7安裝chronyd服務

一、雙節點部署:

ip主機名192.168.100.10controller192.168.100.20compute

二、配置時間同步

1、雙節點安裝chrony服務(這里是使用本地的軟件包進行yum安裝)

[root@controller ~]# yum install -y chrony[root@compute ~]# yum install -y chrony

2、controller修改chrony服務配置文件(在/etc/chrony.conf目錄下)

[root@controller ~]# vi /etc/chrony.conf # Use public servers from the pool.ntp.org project.# Please consider joining the pool (http://www.pool.ntp.org/join.html).#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 controller iburst //添加這一行# Record the rate at which the system clock gains/losses time.driftfile /var/lib/chrony/drift# Allow the system clock to be stepped in the first three updates# if its offset is larger than 1 second.makestep 1.0 3# Enable kernel synchronization of the real-time clock (RTC).rtcsync# Enable hardware timestamping on all interfaces that support it.#hwtimestamp *# Increase the minimum number of selectable sources required to adjust# the system clock.#minsources 2# Allow NTP client access from local network.allow all //去掉#號# Serve time even if not synchronized to a time source.local stratum 10 //去掉#號# Specify file containing keys for NTP authentication.#keyfile /etc/chrony.keys# Specify directory for log files.logdir /var/log/chrony# Select which information is logged.#log measurements statistics tracking

3、compute 修改chrony配置文件

[root@compute ~]# vi /etc/chrony.conf # Use public servers from the pool.ntp.org project.# Please consider joining the pool (http://www.pool.ntp.org/join.html).#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 iburstserver 192.168.100.10 iburst //添加這一行# Record the rate at which the system clock gains/losses time.driftfile /var/lib/chrony/drift# Allow the system clock to be stepped in the first three updates# if its offset is larger than 1 second.makestep 1.0 3# Enable kernel synchronization of the real-time clock (RTC).rtcsync# Enable hardware timestamping on all interfaces that support it.#hwtimestamp *# Increase the minimum number of selectable sources required to adjust# the system clock.#minsources 2# Allow NTP client access from local network.#allow 192.168.0.0/16# Serve time even if not synchronized to a time source.#local stratum 10# Specify file containing keys for NTP authentication.#keyfile /etc/chrony.keys# Specify directory for log files.logdir /var/log/chrony# Select which information is logged.#log measurements statistics tracking

4、雙節點重啟服務,并設置開機自啟

[root@controller ~]# systemctl restart chronyd && systemctl enable chronyd[root@compute ~]# systemctl restart chronyd && systemctl enable chronyd

5、controller開啟ntp同步

[root@controller ~]# timedatectl set-ntp true

6、雙節點執行chronyc sources命令,結果中存在以^*開頭的行,則同步成功

[root@controller ~]# chronyc sources210 Number of sources = 1MS Name/IP address Stratum Poll Reach LastRx Last sample ===============================================================================^* controller 10 6 377 27 +186ns[-8404ns] +/- 17us[root@compute ~]# chronyc sources210 Number of sources = 1MS Name/IP address Stratum Poll Reach LastRx Last sample ===============================================================================^* controller 10 6 17 34 -4280ns[ -13us] +/- 328usCentos7使用chronyd進行時鐘同步

最近要做阿里云遷移 IDC 機房,整理下 Linux 運維基線,簡單記錄,以備后用~

安裝# 默認已經安裝$ yum install -y chrony配置文件$ cat /etc/chrony.conf# Use public servers from the pool.ntp.org project.# Please consider joining the pool (http://www.pool.ntp.org/join.html).# 國家服務器server 0.cn.pool.ntp.orgserver 1.cn.pool.ntp.orgserver 2.cn.pool.ntp.orgserver 3.cn.pool.ntp.org# 阿里server ntp.aliyun.com# 騰訊server time1.cloud.tencent.comserver time2.cloud.tencent.comserver time3.cloud.tencent.comserver time4.cloud.tencent.comserver time5.cloud.tencent.com# 蘋果server time.asia.apple.com# 微軟server time.windows.com# 其他server cn.ntp.org.cn# Record the rate at which the system clock gains/losses time.driftfile /var/lib/chrony/drift# Allow the system clock to be stepped in the first three updates# if its offset is larger than 1 second.makestep 1.0 3# Enable kernel synchronization of the real-time clock (RTC).rtcsync# Enable hardware timestamping on all interfaces that support it.#hwtimestamp *# Increase the minimum number of selectable sources required to adjust# the system clock.#minsources 2# Allow NTP client access from local network.#allow 192.168.0.0/16# Serve time even if not synchronized to a time source.#local stratum 10# Specify file containing keys for NTP authentication.#keyfile /etc/chrony.keys# Specify directory for log files.logdir /var/log/chrony# Select which information is logged.#log measurements statistics tracking啟動服務及時區設置# 啟動服務$ systemctl start chronyd# 開機啟動$ systemctl enable chronyd# 查看當前狀態$ systemctl status chronyd# 查看亞洲時區$ timedatectl list-timezones | grep Asia# 設置時區$ timedatectl set-timezone Asia/Shanghai驗證服務# 查看現有的時間服務器$ chronyc sources -v# 查看時間服務器狀態$ chronyc sourcestats -v# 顯示時鐘同步相關參數$ chronyc tracking# 查看當前時區及時間$ timedatectl?手動同步時間# 使用 ntpdate 同步時間$ ntpdate ntp.aliyun.com# chronyd 未啟動時,如下命令同步時間$ chronyd -q 'server pool.ntp.org iburst'# chronyd 啟動時,使用如下命令同步時間$ chronyc -a 'burst 4/4' && sleep 10 && chronyc -a makestep手動設置時間# date 設置時間$ date -s '2021-06-03 19:00:00'# 關閉 ntp 同步后,才可以使用 timedatectl 進行時間設置$ timedatectl set-ntp false# 設置日期和時間$ timedatectl set-time '2021-06-03 19:00:00'# 設置日期$ timedatectl set-time '2021-06-03'# 設置時間$ timedatectl set-time '19:00:00'# 設置完成后,再開啟$ timedatectl set-ntp true總結

以上為個人經驗,希望能給大家一個參考,也希望大家多多支持好吧啦網。

標簽: Linux
成人在线亚洲_国产日韩视频一区二区三区_久久久国产精品_99国内精品久久久久久久
韩国精品免费视频| www.综合网.com| 亚洲伊人色欲综合网| 中文在线资源观看网站视频免费不卡 | 国产日韩精品一区观看 | 国产视频亚洲色图| 国产日韩影视精品| 久久久久久久久蜜桃| 2020国产精品自拍| 久久精品视频免费观看| 久久久久久免费毛片精品| 337p日本欧洲亚洲大胆色噜噜| 亚洲精品一区二区三区精华液| 欧美一区二区三区在线看| 欧美一级片免费看| 亚洲成人自拍偷拍| 日韩1区2区3区| 九九热在线视频观看这里只有精品| 久久99精品一区二区三区| 麻豆国产欧美一区二区三区| 国产成人在线影院| 91丝袜国产在线播放| 亚洲视频久久| 亚洲一区尤物| 欧美精品第1页| 久久综合色天天久久综合图片| 欧美国产成人在线| 亚洲国产欧美日韩另类综合| 精品一区二区日韩| 丁香啪啪综合成人亚洲小说| 国产一区二区在线观看免费播放| 亚洲成人中文| 欧美视频一区二区三区四区| 精品成人免费观看| 亚洲综合男人的天堂| 久久精品国产一区二区三区免费看| 粉嫩av亚洲一区二区图片| 欧美日韩在线不卡一区| 狼狼综合久久久久综合网| 日韩一区二区三区在线观看| 国产精品视频观看| 三级久久三级久久久| 不卡视频一二三四| 亚洲精品偷拍| 在线观看视频欧美| 欧美国产一区在线| 蜜臀91精品一区二区三区 | 欧美岛国在线观看| 香蕉成人啪国产精品视频综合网| 国产精品性做久久久久久| 欧美在线三区| 色婷婷久久久综合中文字幕| 久久日韩粉嫩一区二区三区| 亚洲国产精品尤物yw在线观看| 国产美女久久久久| 99re热精品| 精品国产乱码久久久久久影片| 一区二区三区波多野结衣在线观看| 国产精品18久久久| 免费视频一区二区三区在线观看| 精品国产成人在线影院 | 国产精品av久久久久久麻豆网| 欧美日韩一区二区三区四区| 亚洲天堂精品在线观看| 国产凹凸在线观看一区二区| 亚洲欧美精品在线观看| www成人在线观看| 免费人成网站在线观看欧美高清| 欧美人与禽猛交乱配视频| 欧美片在线播放| 天堂va蜜桃一区二区三区| 午夜日韩av| 日韩三级视频在线看| 香港成人在线视频| 亚洲精品四区| 中文无字幕一区二区三区| 国产精品99久久久久久似苏梦涵 | 一区二区三区资源| 色综合天天综合网国产成人综合天| 亚洲综合丝袜美腿| 久久不见久久见免费视频1| 亚洲国产免费看| 久久精品人人做人人综合| 国内国产精品久久| 色激情天天射综合网| 亚洲欧美日韩成人高清在线一区| 99久久亚洲一区二区三区青草| 欧美精品1区2区3区| 日本伊人午夜精品| 欧美中文日韩| 亚洲一线二线三线视频| 精品不卡在线| 国产精品不卡在线| 欧美日韩亚洲一区| 久久久久亚洲蜜桃| 91视频你懂的| 精品国产精品一区二区夜夜嗨| 国产成人免费视频网站高清观看视频 | 色综合一个色综合| 国产午夜精品美女毛片视频| 白白色 亚洲乱淫| 精品国产髙清在线看国产毛片| 国产电影一区在线| 欧美成人一级视频| 亚洲视频一区二区免费在线观看| 欧美日韩天天操| 国产色产综合产在线视频| 国产字幕视频一区二区| 亚洲国产精品ⅴa在线观看| 欧美日韩精品免费观看视频完整 | av成人动漫在线观看| 久久影院电视剧免费观看| 99久久国产综合精品色伊| 国产婷婷色一区二区三区在线| 欧美一区2区三区4区公司二百| 国产亚洲美州欧州综合国| 欧美日韩三区| 亚洲综合图片区| 欧美视频一区二区三区在线观看| 国产一区二三区好的| 久久综合精品国产一区二区三区| 欧美一区二区三区四区夜夜大片 | 欧美日本一区| 亚洲女同女同女同女同女同69| 国产一区二区高清视频| 久久爱www久久做| xnxx国产精品| 国产情侣一区| 韩国三级中文字幕hd久久精品| 日韩欧美国产午夜精品| 欧美精品v日韩精品v国产精品| 亚洲综合色成人| 在线播放中文一区| 欧美日韩国产精品一卡| 亚洲第一二三四区| 欧美一区日韩一区| 在线看无码的免费网站| 免费观看久久久4p| 国产亚洲欧美色| 蜜桃久久精品乱码一区二区| 风间由美中文字幕在线看视频国产欧美| 国产丝袜欧美中文另类| 久久综合一区| 色综合天天综合在线视频| 午夜天堂影视香蕉久久| 日韩欧美亚洲国产另类| 日韩欧美电影一区| 在线观看福利一区| 韩国视频一区二区| 亚洲日本在线看| 在线播放欧美女士性生活| 亚洲激情偷拍| 国产老女人精品毛片久久| 亚洲三级在线播放| 精品欧美乱码久久久久久1区2区| 国产精品v日韩精品v欧美精品网站 | 欧美亚韩一区| 国产一区二区0| 亚洲一区二区三区激情| 亚洲精品一区二区三区福利 | 国产亚洲欧美日韩在线一区| 色香蕉久久蜜桃| 午夜国产欧美理论在线播放 | 国产精品激情电影| 国产一区二区三区在线观看免费视频| 国产精品沙发午睡系列990531| 欧美三级日韩在线| 一区二区三区精品视频在线观看| 成人成人成人在线视频| 免费看欧美美女黄的网站| 最新高清无码专区| 久久综合九色综合欧美亚洲| 91久久精品午夜一区二区| 亚洲精品黄色| 91丨九色porny丨蝌蚪| 久久爱www久久做| 午夜精品一区在线观看| 中文字幕一区二区三区蜜月| 欧美不卡123| 欧美日韩国产另类一区| 久久婷婷麻豆| 99精品免费视频| 国语对白精品一区二区| 丁香另类激情小说| 国产剧情在线观看一区二区| 日韩激情一二三区| 一区二区三区在线观看视频| 国产精品福利一区二区三区| 久久这里只有精品6| 日韩网站在线看片你懂的| 欧美另类一区二区三区| 欧美色图免费看| 精品视频在线免费观看| 91官网在线观看| 久久人人九九| 色偷偷一区二区三区| 久久激情视频| 91久久精品一区二区三| 色婷婷综合久久久久中文| 久久综合一区|