最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

NTP時(shí)間服務(wù)器,部署NTP時(shí)間同步服務(wù)器

2023-03-01 15:23 作者:bili_33337150692  | 我要投稿

檢查集群服務(wù)器的Linux版別,確保相同


[root@cdh1 ~]# cat /etc/redhat-releaseCentOS Linux release 7.2.1511 (Core)

檢查服務(wù)器是否裝置ntp服務(wù)(集群的每個(gè)節(jié)點(diǎn))


[root@cdh1 ~]# rpm -qa | grep ntpfontpackages-filesystem-1.44-8.el7.noarchntpdate-4.2.6p5-29.el7.centos.x86_64ntp-4.2.6p5-29.el7.centos.x86_64

如果沒有裝置運(yùn)用以下命令裝置(集群每個(gè)節(jié)點(diǎn))


[root@cdh1 ~]# yum install ntp ntpdate -y

檢查NTP服務(wù)的狀況(集群每個(gè)節(jié)點(diǎn))


[root@cdh1 ~]# systemctl status ntpd.service● ntpd.service - Network Time Service Loaded: loaded (/usr/lib/systemd/system/ntpd.service; disabled; vendor preset: disabled)? ?Active: inactive (dead)

修正NTP服務(wù)器的機(jī)器的裝備文件,我的是cdh1機(jī)器是服務(wù)器


[root@cdh1 ~]# vi /etc/ntp.conf#找到如下內(nèi)容注釋掉# Please consider joining the pool (http://www.pool.ntp.org/join.html).server 0.centos.pool.ntp.org iburstserver 1.centos.pool.ntp.org iburstserver 2.centos.pool.ntp.org iburstserver 3.centos.pool.ntp.org iburst#添加以下內(nèi)容,同步本地時(shí)刻server 127.127.1.0 iburst

發(fā)動cdh1節(jié)點(diǎn)的NTP服務(wù)


[root@cdh1 ~]# systemctl start ntpd.service

設(shè)置cdh1節(jié)點(diǎn)NTP開機(jī)發(fā)動


[root@cdh1 ~]# systemctl enable ntpd.service

在cdh1檢查NTP狀況


[root@cdh1 ~]# systemctl status ntpd.service● ntpd.service - Network Time Service Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset: disabled) Active: active (running) since Sat 2019-09-28 21:17:35 CST; 2min 10s ago Main PID: 72322 (ntpd) CGroup: /system.slice/ntpd.service └─72322 /usr/sbin/ntpd -u ntp:ntp -g Sep 28 21:17:35 cdh1 ntpd[72322]: Listen normally on 2 lo 127.0.0.1 UDP 123Sep 28 21:17:35 cdh1 ntpd[72322]: Listen normally on 3 eno16777736 192.168.20.134 UDP 123Sep 28 21:17:35 cdh1 ntpd[72322]: Listen normally on 4 lo ::1 UDP 123Sep 28 21:17:35 cdh1 ntpd[72322]: Listen normally on 5 eno16777736 fe80::20c:29ff:fe45:70d1 UDP 123Sep 28 21:17:35 cdh1 ntpd[72322]: Listening on routing socket on fd #22 for interface updatesSep 28 21:17:35 cdh1 ntpd[72322]: 0.0.0.0 c016 06 restartSep 28 21:17:35 cdh1 ntpd[72322]: 0.0.0.0 c012 02 freq_set kernel 0.000 PPMSep 28 21:17:35 cdh1 ntpd[72322]: 0.0.0.0 c011 01 freq_not_setSep 28 21:17:35 cdh1 systemd[1]: Started Network Time Service.Sep 28 21:17:36 cdh1 ntpd[72322]: 0.0.0.0 c514 04 freq_mode

cdh1節(jié)點(diǎn)檢查是否同步:關(guān)閉防火墻或者開放123端口


[root@cdh1 ~]# ntpq -p remote? ? ? ? ? ?refid? ? ? st t when poll reach? ?delay? ?offset? jitter==============================================================================*LOCAL(0)? ? ? ? .LOCL.? ? ? ? ? ?5 l? ?47? ?64? ? 7? ? 0.000? ? 0.000? ?0.000

裝備客戶機(jī)的NTP服務(wù),修正裝備文件


#注釋其他上游服務(wù)器#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 #裝備上游時(shí)刻服務(wù)器為本地的ntpd Server服務(wù)器server 192.168.20.134#裝備允許上游時(shí)刻服務(wù)器自動修正本機(jī)的時(shí)刻restrict 192.168.20.134 nomodify notrap noquery

將客戶機(jī)的時(shí)刻與服務(wù)器的同步下


[root@cdh2 ~]# ntpdate -u 192.168.20.13428 Sep 21:29:49 ntpdate[99848]: step time server 192.168.20.134 offset 18.103932 sec

發(fā)動客戶端的NTP服務(wù)&裝備開機(jī)發(fā)動NTP


[root@cdh2 ~]# systemctl start ntpd.service[root@cdh2 ~]# systemctl enable ntpd.service

檢查客戶機(jī)的NTP狀況


[root@cdh2 ~]# systemctl status ntpd.service● ntpd.service - Network Time Service Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset: disabled) Active: active (running) since Sat 2019-09-28 21:31:26 CST; 38s ago Main PID: 100613 (ntpd) CGroup: /system.slice/ntpd.service └─100613 /usr/sbin/ntpd -u ntp:ntp -g Sep 28 21:31:26 cdh2 ntpd[100613]: Listen and drop on 1 v6wildcard :: UDP 123Sep 28 21:31:26 cdh2 ntpd[100613]: Listen normally on 2 lo 127.0.0.1 UDP 123Sep 28 21:31:26 cdh2 ntpd[100613]: Listen normally on 3 eno16777736 192.168.20.132 UDP 123Sep 28 21:31:26 cdh2 ntpd[100613]: Listen normally on 4 lo ::1 UDP 123Sep 28 21:31:26 cdh2 ntpd[100613]: Listen normally on 5 eno16777736 fe80::20c:29ff:feb3:f5ad UDP 123Sep 28 21:31:26 cdh2 ntpd[100613]: Listening on routing socket on fd #22 for interface updatesSep 28 21:31:26 cdh2 ntpd[100613]: 0.0.0.0 c016 06 restartSep 28 21:31:26 cdh2 ntpd[100613]: 0.0.0.0 c012 02 freq_set kernel 0.000 PPMSep 28 21:31:26 cdh2 ntpd[100613]: 0.0.0.0 c011 01 freq_not_setSep 28 21:31:26 cdh2 systemd[1]: Started Network Time Service.

檢查時(shí)刻是否同步


[root@cdh2 ~]# ntpq -p remote? ? ? ? ? ?refid? ? ? st t when poll reach? ?delay? ?offset? jitter============================================================================== cdh1? ? ? ? ? ? LOCAL(0)? ? ? ? ?6 u? ?14? ?64? ? 3? ? 1.092? ? 9.130? ?3.475


NTP時(shí)間服務(wù)器,部署NTP時(shí)間同步服務(wù)器的評論 (共 條)

分享到微博請遵守國家法律
赤水市| 恩施市| 张家港市| 朝阳区| 商都县| 虎林市| 清丰县| 青神县| 济宁市| 区。| 辛集市| 安岳县| 五寨县| 洮南市| 峡江县| 翁源县| 肇州县| 吉安县| 重庆市| 眉山市| 龙海市| 富宁县| 澄城县| 桐柏县| 汉川市| 民县| 大方县| 乌拉特后旗| 龙门县| 扎赉特旗| 开江县| 武夷山市| 高邮市| 池州市| 永兴县| 获嘉县| 双峰县| 河池市| 温宿县| 新晃| 依安县|