立即注册 登录
SCMLife.com 返回首页

okala的个人空间 http://space.scmlife.com/?70806 [收藏] [复制] [分享] [RSS]

日志

linux下设NTP

已有 796 次阅读2012-7-6 14:39 |个人分类:Linux| linux, NTP

方式A: 使用UTC(对linux就是 /etc/sysconfig/clock 中 UTC=true)
    开机: BIOS--------->UTC(将BIOS中的时间看成是UTC)------(时区变化)----->CST
    关机: CST -------(时区变化)----->UTC-------存储到------>BIOS

方式B: 不使用UTC(对linux就是 /etc/sysconfig/clock 中 UTC=false)
    开机: BIOS----------------------->CST(将BIOS中的时间看成是CST)
    关机: CST ---------存储到------>BIOS
    
Steps to setup NTP service:
change timezone to America/New_York by graphic System->administration->Date&Time
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
vi /etc/ntp.conf
restrict 10.89.16.0 mask 255.255.255.0 nomodify notrap
restrict 10.89.17.0 mask 255.255.255.0 nomodify notrap
:wq
vi /etc/ntp/step-tickers
127.127.1.0
:wq
vi /etc/ntp/ntpservers
comment out lines
:wq
System->Administration->Date&Time->Network Time Protocal->Enable Network Time Protocal->Synchronize System clock before starting service
restart system

Setup NTP client:
change timezone to America/New_York by graphic System->administration->Date&Time
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
vi /etc/ntp.conf
restrict 10.89.16.54 mask 255.255.255.255 nomodify notrap
server  10.89.16.54
:wq
vi /etc/ntp/step-tickers
10.89.16.54
:wq
vi /etc/ntp/ntpservers
comment out lines
:wq
System->Administration->Date&Time->Network Time Protocal->Enable Network Time Protocal->Synchronize System clock before starting service
restart system

鸡蛋

鲜花

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 立即注册

QQ|小黑屋|手机版|无图版|SCMLife.com ( 京ICP备06056490号-1 )

GMT+8, 2017-8-19 16:14 , Processed in 0.032852 second(s), 6 queries , Gzip On, MemCache On.

Powered by SCMLife X3.4 Licensed

© 2001-2017 JoyShare.

返回顶部