看板FreeBSD
标 题Re: 请问怎麽调整系统时间?
发信站交大生科劲公园 (Thu Jun 3 08:21:10 2004)
转信站ptt!ctu-reader!ctu-peer!news.nctu!news.cis.nctu!GenePark
※ 引述《"Rainny" <[email protected]>, 看板: 386BSD》之铭言:
: > # 定时调整时间
: > /etc/rc.conf
: > ntpdate_enable = "YES"
: > ntpdate_flags = "tock.stdtime.gov.tw"
: 定时调整时间...这是多久调整系统时间一次??
抱歉~~抱歉~~ 上面是机器开机更新...
下面...crontab 才是定时更新...
: > /etc/crontab
: > 0 0 * * * root /usr/sbin/ntpdate tock.stdtime.gov.tw >
: /var/log/ntpcheck.log
: > # "> /var/log/ntpcheck.log" 是把查询结果导向..不然好像会将结果 mail 给
: root
--
╔═══╗╔═══╮╔═══╗╭═══╮
║ ║║ ║║ ║║ ║
║ ═╣║ ═ ║╚═╗╔╝║ ╭═╯
║ ═╣║ ╔╮╯╔═╝╚╗║ ╰╯║
╚═══╝╚═╝╚╝╚═══╝╰═══╯
--
※Post by Eric from E139.Life.NCTU.edu.tw