• 
    <sub id="wrhg3"><s id="wrhg3"><li id="wrhg3"></li></s></sub>
    <style id="wrhg3"></style><legend id="wrhg3"><track id="wrhg3"></track></legend>
  • <blockquote id="wrhg3"><p id="wrhg3"></p></blockquote>

    <cite id="wrhg3"><li id="wrhg3"></li></cite>

    国产线路3国产线路2,久久国产亚洲精品赲碰热,亚洲成人日韩av一区,永久免费观看的毛片视频下载,精品久久杨幂国产杨幂,国产成 人 综合 亚洲网,亚洲夫妻性生活视频网站,176精品免费
    您好,歡迎進(jìn)入北京泰福特電子科技有限公司官網(wǎng)

    咨詢服務(wù)熱線

    400-015-1230

    NTP服務(wù)配置ubuntu系統(tǒng)

    發(fā)布時(shí)間:2022-04-12 09:36:15

    NTP即是服務(wù)器,又是客戶端,只需要通過(guò)配置即可。

    準(zhǔn)備兩臺(tái)機(jī)器分別作為服務(wù)端(IP地址設(shè)為192.168.10.10)和客戶端(IP地址設(shè)為192.168.10.12)。

    服務(wù)器:NTPD服務(wù),負(fù)責(zé)與外部公共NTPD服務(wù)同步標(biāo)準(zhǔn)時(shí)間,作為內(nèi)外網(wǎng)絡(luò)的NTPD服務(wù)。

    客戶端:NTPclient,與服務(wù)器同步時(shí)間。

    ubuntu系統(tǒng)

    1.安裝ntp,因?yàn)閚tp服務(wù)既是服務(wù)器,又是客戶端,因此兩端安裝方式一樣

    sudo apt-get install ntp

    2.配置NTP-Server

    # vim /etc/ntp.conf

    # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help

    driftfile /var/lib/ntp/ntp.drift

    # Enable this if you want statistics to be logged.

    #statsdir /var/log/ntpstats/

    statistics loopstats peerstats clockstats

    filegen loopstats file loopstats type day enable

    filegen peerstats file peerstats type day enable

    filegen clockstats file clockstats type day enable

    # You do need to talk to an NTP server or two (or three).

    #server ntp.your-provider.example

    #NTP服務(wù)

    server 210.72.145.44 perfer # 中國(guó)國(guó)家受時(shí)中心

    # 外部時(shí)間server不可用時(shí),以本地時(shí)間作為時(shí)間服務(wù)

    server 127.127.1.0 # local clock

    fudge 127.127.1.0 stratum 10

    # 同意上層時(shí)間server主動(dòng)改動(dòng)本機(jī)時(shí)間

    restrict 210.72.145.44 nomodify notrap noquery

    # 同意內(nèi)網(wǎng)其它機(jī)器同步時(shí)間

    restrict 192.168.10.0 mask 255.255.255.0 nomodify notrap

    # pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will

    # pick a different set every time it starts up. Please consider joining the

    # pool: <http://www.pool.ntp.org/join.html>

    pool 0.debian.pool.ntp.org iburst

    pool 1.debian.pool.ntp.org iburst

    pool 2.debian.pool.ntp.org iburst

    pool 3.debian.pool.ntp.org iburst

    # Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for

    # details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>

    # might also be helpful.

    #

    # Note that "restrict" applies to both servers and clients, so a configuration

    # that might be intended to block requests from certain clients could also end

    # up blocking replies from your own upstream servers.

    # By default, exchange time with everybody, but don't allow configuration.

    restrict -4 default kod notrap nomodify nopeer noquery limited

    restrict -6 default kod notrap nomodify nopeer noquery limited

    # Local users may interrogate the ntp server more closely.

    restrict 127.0.0.1

    restrict ::1

    # Needed for adding pool entries

    restrict source notrap nomodify noquery

    # Clients from this (example!) subnet have unlimited access, but only if

    # cryptographically authenticated.

    #restrict 192.168.123.0 mask 255.255.255.0 notrust

    # If you want to provide time to your local subnet, change the next line.

    # (Again, the address is an example only.)

    #broadcast 192.168.123.255

    # If you want to listen to time broadcasts on your local subnet, de-comment the

    # next lines. Please do this only if you trust everybody on the network!

    #disable auth

    #broadcastclient

    配置文件改動(dòng)完畢,保存退出。重啟服務(wù)。

    # service ntpd restart

    查看服務(wù)狀態(tài)

    #service ntpd status

    查看服務(wù)連接和監(jiān)聽(tīng)

    # netstat -tlunp | grep ntp

    ntpq -p 查看網(wǎng)絡(luò)中的NTPserver

    #ntpd -p

    3.配置NTP-Clients

    # vim /etc/ntp.conf

    # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help

    driftfile /var/lib/ntp/ntp.drift

    # Enable this if you want statistics to be logged.

    #statsdir /var/log/ntpstats/

    statistics loopstats peerstats clockstats

    filegen loopstats file loopstats type day enable

    filegen peerstats file peerstats type day enable

    filegen clockstats file clockstats type day enable

    # You do need to talk to an NTP server or two (or three).

    #server ntp.your-provider.example

    server 192.168.10.10

    # pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will

    # pick a different set every time it starts up. Please consider joining the

    # pool: <http://www.pool.ntp.org/join.html>

    pool 0.debian.pool.ntp.org iburst

    pool 1.debian.pool.ntp.org iburst

    pool 2.debian.pool.ntp.org iburst

    pool 3.debian.pool.ntp.org iburst

    # Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for

    # details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>

    # might also be helpful.

    #

    # Note that "restrict" applies to both servers and clients, so a configuration

    # that might be intended to block requests from certain clients could also end

    # up blocking replies from your own upstream servers.

    # By default, exchange time with everybody, but don't allow configuration.

    restrict -4 default kod notrap nomodify nopeer noquery limited

    restrict -6 default kod notrap nomodify nopeer noquery limited

    # Local users may interrogate the ntp server more closely.

    restrict 127.0.0.1

    restrict ::1

    # Needed for adding pool entries

    restrict source notrap nomodify noquery

    # Clients from this (example!) subnet have unlimited access, but only if

    # cryptographically authenticated.

    #restrict 192.168.123.0 mask 255.255.255.0 notrust

    # If you want to provide time to your local subnet, change the next line.

    # (Again, the address is an example only.)

    #broadcast 192.168.123.255

    # If you want to listen to time broadcasts on your local subnet, de-comment the

    # next lines. Please do this only if you trust everybody on the network!

    #disable auth

    #broadcastclient

     配置文件改動(dòng)完畢,保存退出。重啟服務(wù)。

    # service ntpd restart

     查看服務(wù)狀態(tài)

    #service ntpd status

     配置完成,可以手動(dòng)修改客戶端時(shí)間,然后靜置10幾分鐘,客戶端就會(huì)跟服務(wù)器同步


    • 聯(lián)系方式
    • 傳 真:86-10-82782026
    • 電 話:400-015-1230
    • 地 址:北京市海淀區(qū)北清路68號(hào)院用友軟件園北區(qū)17號(hào)樓三層
    在線咨詢

    咨詢電話:

    400-015-1230

    • 微信掃碼 關(guān)注我們

    Copyright ? 2002-2035 北京泰福特電子科技有限公司 版權(quán)所有 備案號(hào):京ICP備12028220號(hào)
    京公網(wǎng)安備 11010802025976號(hào)

    掃一掃咨詢微信客服

    18519396506
    主站蜘蛛池模板: 亚洲日韩精品制服丝袜AV| 精选国产av精选一区二区三区| 日韩中文字幕高清有码| 亚洲a∨无码一区二区三区| 免费无码又爽又刺激高潮的视频 | 日韩精品一区二区三区色| 国精产品乱码一区一区三区四区| 亚洲欧美日韩中文字幕一区二区三区| 色窝窝亚洲AV网在线观看| 99久久国语露脸精品国产| 蜜臀av久久国产午夜| 久章草在线毛片视频播放| 日韩无套内射视频6| 免费高清特黄a大片| 亚洲日韩欧洲无码AV夜夜摸| 97se亚洲国产综合在线| 高跟熟女中文字幕在线亚洲| 国产午夜福利在线视频| 亚洲国产欧美日韩另类| 国产在线中文字幕精品| 咸阳市| 日韩精品永久免费播放平台| 国产精品视频一区二区不卡| 99国产欧美另类久久久精品| 国产亚洲av综合三区| 好看午夜一鲁一鲁一鲁| 国产三级国产精品国产专区| 国产免费午夜福利片在线| 欧美亚韩一区二区三区| 亚洲第一无码专区天堂| 中文无码字幕一区到五区免费| 中文字幕人妻系列| 亚洲成亚洲成网中文字幕| 国产精品中文字幕自拍| 国内精品人人妻少妇视频| 精品无码毛片| 情趣房tp漂亮大学生情侣| 一本一道av中文字幕无码| 久久这里有精品国产电影网| 亚洲国产精品人人做人人爱| 同德县|
    Powered by RRZCMS