日本不卡不码高清免费观看,久久国产精品久久w女人spa,黄色aa久久,三上悠亚国产精品一区二区三区

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

centos7安裝chronyd服務方式

瀏覽:2232日期: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
日本不卡不码高清免费观看,久久国产精品久久w女人spa,黄色aa久久,三上悠亚国产精品一区二区三区
欧美国产视频| 国产欧美高清| 麻豆精品网站| 亚洲成人三区| 亚洲欧美网站| 日本不卡视频在线| 欧美性www| 日韩不卡一区| 国产精品扒开腿做爽爽爽软件| 婷婷亚洲五月| 日本不卡视频在线观看| 国产+成+人+亚洲欧洲在线| 99视频精品全国免费| 水野朝阳av一区二区三区| 在线观看一区| 久久99精品久久久野外观看| 91伊人久久| 青青久久av| 久久99伊人| av最新在线| 97精品资源在线观看| 91青青国产在线观看精品| 伊人久久视频| 蜜臀久久99精品久久久久久9| 国产日韩欧美一区在线| 久久视频国产| 日韩高清欧美激情| 国产成人精品亚洲线观看| 在线视频日韩| 国产成人免费精品| 鲁大师影院一区二区三区| 日韩中文字幕亚洲一区二区va在线| 久久精品999| 2023国产精品久久久精品双| 国产精品亚洲片在线播放| 在线看片不卡| 日本精品不卡| 久久99精品久久久久久园产越南| 精品一区在线| 色婷婷综合网| 欧美激情日韩| 日本成人在线不卡视频| 蜜桃成人av| 高潮一区二区| 精品视频91| 国产乱码精品一区二区三区亚洲人| 日韩毛片在线| av中文资源在线资源免费观看| 日韩不卡在线观看日韩不卡视频| 亚洲大全视频| 久久国产影院| 亚洲不卡av不卡一区二区| 激情不卡一区二区三区视频在线| 日本国产一区| 日韩高清一区二区| 蜜桃久久久久久久| 免费看精品久久片| 久久亚洲图片| 日韩视频1区| 欧美视频久久| 国产日韩精品视频一区二区三区| 99国产精品| 亚洲综合精品| 日韩专区欧美专区| 日韩精选在线| 久久精品99国产国产精| 你懂的国产精品永久在线| 国产精品2023| 国产不卡精品在线| 久久精品国产68国产精品亚洲| 国内精品99| 亚洲开心激情| 久久av网站| 久久国产亚洲精品| 免播放器亚洲| 国产欧美激情| 久久亚洲人体| 日韩精品久久久久久久电影99爱| 好吊视频一区二区三区四区| 91亚洲无吗| 日本精品不卡| 美女日韩在线中文字幕| 欧美私人啪啪vps| 欧美日韩国产v| 丝袜美腿亚洲色图| 国产成人精品亚洲线观看| aa国产精品| 美女久久精品| 乱人伦精品视频在线观看| 久久不卡国产精品一区二区| 久久国产中文字幕| 亚洲三级视频| 久久免费高清| 欧美在线观看天堂一区二区三区| 丰满少妇一区| 亚洲精品一级| 色88888久久久久久影院| 久久精品72免费观看| 蜜臀av免费一区二区三区| 日韩在线黄色| 婷婷综合在线| 日韩一区电影| 美女免费视频一区| 最新国产精品久久久| 国产在线|日韩| 精品视频在线观看网站| 国产精品日韩| 99久久激情| 国产在线观看www| 国产精品第一| 日韩一区二区三区在线看| 亚洲一级黄色| 捆绑调教日本一区二区三区| 国产劲爆久久| 国产欧美亚洲一区| 日韩一区二区三区在线看| 噜噜噜久久亚洲精品国产品小说| 久久国产日韩| 91精品韩国| 中文字幕成在线观看| 黄色欧美在线| 国产欧美在线| 欧美另类中文字幕| 国产精品videossex| 97久久超碰| 国产精品久久久久av蜜臀| 国产精品男女| 青青草国产精品亚洲专区无| 日韩精品欧美大片| 日韩一区二区三区四区五区| 91大神在线观看线路一区| 国产精品日韩精品中文字幕| 国产欧美日韩在线一区二区| 国产精品天天看天天狠| 红杏一区二区三区| 国产 日韩 欧美一区| 97精品国产一区二区三区 | 免费在线观看成人| 久久国产精品久久w女人spa| 欧美专区18| 欧美天堂一区二区| 麻豆精品少妇| 久久久精品网| 性一交一乱一区二区洋洋av| 日韩和欧美一区二区三区| 国产欧美日韩在线一区二区| 激情国产在线| 午夜在线一区二区| 国产精品1区在线| 激情婷婷久久| 亚洲精品1区| 国产日本精品| 日韩精品免费一区二区在线观看| 伊人久久亚洲影院| 国产精品入口久久| 亚洲国产专区| 欧美亚洲人成在线| 欧美日韩一二| 国产亚洲久久| 久久久天天操| 国产丝袜一区| 亚洲男女av一区二区| 麻豆成人av在线| 石原莉奈一区二区三区在线观看| 久久伊人国产| 欧美日韩国产探花| 久久一区精品| 日韩av中文在线观看| 99热精品久久| 精品午夜视频| 欧美在线黄色| 免费黄色成人| 欧美xxxx中国| 日韩和欧美一区二区三区| 在线日韩视频| 欧美日韩在线观看首页| 国产精品一区高清| 久久国产精品99国产| 久久精品91| av日韩中文| 国产精品综合色区在线观看| 亚洲一区av| 日韩视频中文| 欧洲毛片在线视频免费观看| 天堂√中文最新版在线| 精品在线网站观看| 日本高清久久| 日韩欧美中文字幕电影| 免费日韩精品中文字幕视频在线| 在线日韩欧美| 激情综合自拍| 天堂网在线观看国产精品| 99久久婷婷| 亚洲一区观看| 国产一区91| 香蕉成人久久| 婷婷精品在线| 欧美日本不卡高清| 精品欧美视频| 国产精品.xx视频.xxtv|