久久青草精品A片狠狠,日韩欧美视频一区二区,亚洲国码AV日韩,国产精品黄在

centos7 配置時間同步服務(wù)器ntp

2016-09-02 07:36:41 9062

第一方法: 簡單 高效 沒煩惱 一條命令解決單臺server-time 
ntpdate -u ntp.api.bz 
第二方法:時間服務(wù)器: 
1) sudo yum install ntp 
2)sudo nano /etc/ntp.conf 
注釋一行 
restrict default ignore 
加入一行 
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap #服務(wù)器的地址 
3)sudo nano /etc/ntp/step-tickers 
加入一行(也可以在原有基礎(chǔ)上改寫) 
pool.ntp.org 
這樣每次ntpd啟動時,會自動連接該國際標準時間服務(wù)器; 
4)sudo systemctl restart ntpd 
5)ss -an |grep 123 
確保該端口以udp方式開放

6)sudo systemctl enable ntpdate.service (加入開機自啟動) 

7)date (檢測時間是否靠譜) 
Wed Aug 31 11:45:50 CST 2016


提交成功!非常感謝您的反饋,我們會繼續(xù)努力做到更好!

這條文檔是否有幫助解決問題?

非常抱歉未能幫助到您。為了給您提供更好的服務(wù),我們很需要您進一步的反饋信息:

在文檔使用中是否遇到以下問題: