當前位置:首頁 » 雲伺服器 » 麒麟系統上搭建ntp伺服器

麒麟系統上搭建ntp伺服器

發布時間: 2024-11-03 19:59:22

㈠ 麒麟伺服器怎麼下載ntp服務命令

麒麟伺服器離線下載下載ntp服務命令。

下載ntp的安裝包,網址在官網搜索ntp:可以為其配置ntpf將其設置為自動同步某伺服器時鍾。我們繼續執行安裝命令,方式一用rpm64rpm45進行安裝或者使用rpmivh和nodepsforce執行安裝命令。安裝之後試運行。

務端配置

1.首先安裝檢查伺服器是否安裝了ntp、ntpdate


# rpm -qa | grep ntp

ntpdate-4.2.6p5-29.el7.centos.x86_64

ntp-4.2.6p5-29.el7.centos.x86_64


2.如果沒有,需要使用安裝

# yum -y install ntp ntpdate


3.修改ntp配置文件/etc/ntp.conf


1)注釋以下配置

# 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

2)新增如下配置


#日誌文件

logfile /var/log/ntpd.log


#授權172.16.1.0網段上所有機器可以從這台機器上查詢和時間同步

restrict 172.16.1.0 mask 225.225.225.0 nomotify notrap

熱點內容
撥號伺服器配置代理ip 發布:2025-09-11 01:45:07 瀏覽:479
慧編程動畫 發布:2025-09-11 01:22:12 瀏覽:728
java隨機代碼 發布:2025-09-11 01:06:00 瀏覽:154
php手機訪問判斷 發布:2025-09-11 00:57:33 瀏覽:958
mssql存儲過程if 發布:2025-09-11 00:39:57 瀏覽:840
訪問學者和進修的區別 發布:2025-09-11 00:33:54 瀏覽:314
編程師簡筆畫 發布:2025-09-11 00:12:56 瀏覽:157
安卓原裝軟體如何安裝到其他設備 發布:2025-09-11 00:05:16 瀏覽:438
我的世界基岩版國際服伺服器地址 發布:2025-09-11 00:03:47 瀏覽:159
python3例子 發布:2025-09-11 00:02:53 瀏覽:838