• <acronym id="muwdf"><var id="muwdf"><option id="muwdf"></option></var></acronym>
    
    
    <rt id="muwdf"></rt>

    <li id="muwdf"></li>
    国产欧美久久久久久,天堂一区在线观看,无码人妻视频一区二区三区 ,国产色老妇在线精品,欧美18videosex性欧美tube1080 ,色吊丝亚洲欧美,污污内射在线观看一区二区少妇,亚洲影音先锋资源站
    您好,歡迎進入北京泰福特電子科技有限公司官網

    咨詢服務熱線

    400-015-1230

    NTP服務配置ubuntu系統

    發布時間:2022-04-12 09:36:15

    NTP即是服務器,又是客戶端,只需要通過配置即可。

    準備兩臺機器分別作為服務端(IP地址設為192.168.10.10)和客戶端(IP地址設為192.168.10.12)。

    服務器:NTPD服務,負責與外部公共NTPD服務同步標準時間,作為內外網絡的NTPD服務。

    客戶端:NTPclient,與服務器同步時間。

    ubuntu系統

    1.安裝ntp,因為ntp服務既是服務器,又是客戶端,因此兩端安裝方式一樣

    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服務

    server 210.72.145.44 perfer # 中國國家受時中心

    # 外部時間server不可用時,以本地時間作為時間服務

    server 127.127.1.0 # local clock

    fudge 127.127.1.0 stratum 10

    # 同意上層時間server主動改動本機時間

    restrict 210.72.145.44 nomodify notrap noquery

    # 同意內網其它機器同步時間

    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

    配置文件改動完畢,保存退出。重啟服務。

    # service ntpd restart

    查看服務狀態

    #service ntpd status

    查看服務連接和監聽

    # netstat -tlunp | grep ntp

    ntpq -p 查看網絡中的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

     配置文件改動完畢,保存退出。重啟服務。

    # service ntpd restart

     查看服務狀態

    #service ntpd status

     配置完成,可以手動修改客戶端時間,然后靜置10幾分鐘,客戶端就會跟服務器同步


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

    咨詢電話:

    400-015-1230

    • 微信掃碼 關注我們

    Copyright ? 2002-2035 北京泰福特電子科技有限公司 版權所有 備案號:京ICP備12028220號
    京公網安備 11010802025976號

    掃一掃咨詢微信客服

    18519396506
    主站蜘蛛池模板: 久青草精品视频在线观看| 亚洲毛片无码不卡AV在线播放| 最新国产美女一区二区三区| 亚洲国产精品嫩草影院久久 | 无码一区二区三区老色鬼| 玩弄人妻少妇500系列| 蜜臀视频一区二区在线播放| 国产亚洲一二三区精品| 色国产视频| 亚洲欧洲日本精品专线| 狠狠躁夜夜躁人人爽蜜桃| 国产成人精品亚洲午夜麻豆| 亚洲中文字幕国产综合| 97视频精品全国免费观看| yy6080国产精品久久| 欧洲精品一区二区三区久久| 亚洲成人精品| 99视频精品3| 国产成人高清精品亚洲| 久久婷婷成人综合色| 污污网站18禁在线永久免费观看| 国产剧情福利一区二区麻豆 | 亚洲无人区码一二三四区| 夜夜欢视频网| 少妇高潮灌满白浆毛片免费看| 大悟县| 少妇精品久久久一区二区三区 | 蜜芽久久人人超碰爱香蕉| 内射自拍| 五月丁香综合激情六月久久| 337p日本欧洲中国大胆精品| 国产精品久久久久久无毒不卡| 色综合人人超人人超级国碰| 国产精品午夜福利91| 91孕妇精品一区二区三区| 国产乱人对白| 在线亚洲中文精品第一页| 真实国产普通话对白乱子子伦视频 | 国产精欧美一区二区三区| 18黑白丝水手服自慰喷水网站 | 亚洲国产欧美日韩另类|
    Powered by RRZCMS