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

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

centos7安裝chronyd服務方式

瀏覽:2210日期: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久久,三上悠亚国产精品一区二区三区
蜜臀久久精品| 日韩有码av| 日欧美一区二区| 欧美日韩高清| 亚洲91视频| 九色porny丨国产首页在线| 国产精品igao视频网网址不卡日韩| 国产视频一区欧美| 久久国产电影| 国模 一区 二区 三区| 久久久国产精品一区二区中文| 亚洲www免费| 成人精品久久| 久久av资源| 精品在线网站观看| 久久精品网址| 亚洲黄色中文字幕| 日韩欧美精品| 久久影院一区| 激情欧美一区| 欧美特黄视频| 石原莉奈在线亚洲二区| 免费观看在线色综合| av不卡免费看| 亚洲精品乱码| 国产精品丝袜在线播放| 国产在线日韩精品| 亚洲国产福利| 一区三区视频| 天堂av一区| 欧美激情 亚洲a∨综合| 国产精品麻豆久久| 久久婷婷丁香| 六月丁香综合| 日韩成人一级| 精品国产中文字幕第一页| 成人一二三区| 91成人网在线观看| 石原莉奈一区二区三区在线观看| 中文字幕日韩高清在线 | 天堂va蜜桃一区二区三区| 丝袜a∨在线一区二区三区不卡| 日本一区二区三区中文字幕| 国产麻豆精品久久| 神马久久午夜| 午夜欧美视频| 欧美亚洲综合视频| www.九色在线| 另类av一区二区| 国产三级精品三级在线观看国产| 麻豆高清免费国产一区| 国产一区二区亚洲| 国产字幕视频一区二区| 亚洲精品韩国| 精品香蕉视频| 亚洲女人av| 国产精品亚洲人成在99www| 一区二区三区四区日本视频| 亚洲免费一区二区| 国精品一区二区三区| 三级亚洲高清视频| 日韩一级网站| 亚洲永久字幕| 久久精品亚洲欧美日韩精品中文字幕| 国产一在线精品一区在线观看| 四虎精品一区二区免费| 久久国产乱子精品免费女| 国产精品字幕| 亚洲精品少妇| 美女av在线免费看| 石原莉奈在线亚洲二区| 精品九九在线| 日韩在线一二三区| 欧美www视频在线观看| 亚洲一区二区三区中文字幕在线观看| 久久超级碰碰| 免费人成精品欧美精品| 麻豆一区二区三| 99视频精品免费观看| 国产毛片精品| 午夜在线观看免费一区| 国产亚洲精品美女久久 | 亚洲美洲欧洲综合国产一区| 国产精品一区二区精品| 国产亚洲亚洲| 综合日韩av| 国产欧美一区| 先锋亚洲精品| 亚洲爱爱视频| 麻豆高清免费国产一区| 免费精品视频最新在线| 欧美成人a交片免费看| 亚洲精品人人| 久久国产成人午夜av影院宅| 久久爱www.| 亚洲精品字幕| 欧美日韩水蜜桃| 精品日本视频| 日本久久二区| 99香蕉国产精品偷在线观看| 亚洲一区资源| 精品国产a一区二区三区v免费| 人人爽香蕉精品| 欧美日韩中文一区二区| 欧美国产另类| 色综合视频一区二区三区日韩| 午夜欧美巨大性欧美巨大| 日韩一区二区三区精品| 国产亚洲网站| 国产91精品对白在线播放| 高清一区二区三区| 国产日本亚洲| 日本视频中文字幕一区二区三区| 视频一区视频二区中文| 国产99精品一区| 欧洲av不卡| 精品欧美视频| 麻豆91小视频| 麻豆国产欧美日韩综合精品二区| 日韩av午夜在线观看| 亚洲精品福利| 视频一区视频二区中文字幕| 欧美日韩视频免费观看| 麻豆极品一区二区三区| 国产精品久久国产愉拍| 青青国产精品| 日韩精品三级| 日本成人中文字幕在线视频| 国产精品人人爽人人做我的可爱| 国产99精品| 欧美一区二区三区高清视频| 正在播放日韩精品| 国产成人1区| 国产中文在线播放| 日韩伦理一区| 手机精品视频在线观看| 日韩影院免费视频| 午夜久久久久| 一区在线免费| 久久最新视频| 亚洲精品极品| 国产精品一区二区三区美女| 国产精品亚洲综合久久| 精品美女视频 | 亚洲深深色噜噜狠狠爱网站| 伊人精品一区| 色偷偷色偷偷色偷偷在线视频| 日韩久久精品网| 久久久影院免费| 欧美在线亚洲综合一区| 丝袜亚洲另类欧美| 一区二区91| 日韩av二区在线播放| 欧美激情福利| 精品亚洲成人| 三级小说欧洲区亚洲区| 国产综合欧美| 三级欧美在线一区| 日本欧美一区| 精品午夜久久| 亚洲一级少妇| 亚洲成人三区| 亚洲精品黄色| 久久精品资源| 日韩中文欧美| 亚洲综合日本| 国产亚洲一区二区三区不卡| 给我免费播放日韩视频| 久久一区二区中文字幕| 喷白浆一区二区| 国产精品羞羞答答在线观看| 精品国产日韩欧美精品国产欧美日韩一区二区三区 | 国产一区二区三区四区二区| 日韩免费福利视频| 日韩亚洲精品在线| 日韩精品一级| 日本美女一区| 亚洲婷婷丁香| 麻豆高清免费国产一区| 亚洲高清毛片| 涩涩涩久久久成人精品| 日韩av影院| 中文字幕在线看片| 久久国产精品久久久久久电车| 国产日本久久| 日韩影院二区| 亚洲我射av| 四季av一区二区凹凸精品| 美女日韩在线中文字幕| 国产精品久久久久久久久久白浆 | 97久久超碰| 韩国久久久久久| 手机精品视频在线观看| 美女精品视频在线| 欧美福利在线| 亚洲精品一级| 在线看片福利| 日韩欧美中文在线观看| 亚洲日本网址| 欧美日韩亚洲一区|