Re: [問題] 請問/usr/sbin/ntpdate timeserver以後 …
※ 引述《donkeykong.bbs@ptt.cc (硬碟不足)》之銘言:
> 因為我用time.nsysu.edu.tw 好像錯誤
> root@donkeykong [/ftproot]#ntpdate time.nsysu.edu.tw
> Looking for host time.nsysu.edu.tw and service ntp
> host found : dns.nsysu.edu.tw
> 14 Aug 15:09:31 ntpdate[8525]: no server suitable for synchronization found
> 所以我改用
> ntpdate stdtime.sinica.edu.tw
> root@donkeykong [/ftproot]#ntpdate stdtime.sinica.edu.tw
> Looking for host stdtime.sinica.edu.tw and service ntp
> host found : ns.cc.sinica.edu.tw
> 14 Aug 15:09:16 ntpdate[8514]: adjust time server 140.109.1.4 offset -0.336366
> sec
> 但是 抓下來的時間 跟現在時間 差了8小時
> 感覺是因為國際時間跟台灣時間的關係 有辦法改變這個嗎QQ
> 我上網查 鳥哥的說明是linux 的
> ========
> 我們在前面說過, Linux 的時區檔案放置在 /etc/localtime ,這是一個時間格式的檔
> 案,而不是 ASCII 類型的檔案喔!(file /etc/localtime 可以看出),至於所有的 Time
> Zone 則放置在 /usr/share/zoneinfo 這個目錄下。請注意:
>
> 當 /etc/localtime 存在時,系統的時區以該檔案代表的時區來顯示、
> 當 /etc/localtime 不存在時,系統的時區主要以 GMT (或 UTC) 為準;
>
> 所以,如果您想要變更您 Linux 系統的時區,那麼只要在 /usr/share/zoneinfo 裡面找
> 到您需要的時區檔案,然後將他複製一份成為 /etc/localtime 就可以順利的更新時區設
> 定了!另外,同時建議修正一下 /etc/sysconfig/clock 這個檔案裡面的 ZONE 設定值!
> 以我們台灣的 Time zone 為例,在 /etc/sysconfig/clock 這個檔案當中應該是『ZONE=
> "Asia/Taipei"』這就表示我們的時區檔案為 /usr/share/zoneinfo/Asia/Taipei 這個檔
> 案囉!請對應著修改成您所想要的時區吧!
> ========
> 我找不到zoneinfo 的相關檔案^^;
> 請問在freebsd底下要怎麼修改這個呢 謝謝
freebsd中應該會存在 /usr/share/zoneinfo 這路徑的, check一下吧...
時區要改成台北可試試下面這些方法:
rm /etc/localtime;ln -s /usr/share/zoneinfo/Asia/Taipei /etc/localtime
或用/stand/sysinstall去改你的time zone
time.nsysu.edu.tw參考就好,時好時掛...
--
===== ╱ ◢ === ╱ ◢ === ╱ ◢ ===========================
=== ╱ ╱ ▌== ╱ ╱ ▌== ╱ ╱ ▌ === 中山lalala小站 ======
= ◢▄▄ ╱ —▌ ◢▄▄ ╱ —▌ ◢▄▄ ╱ —▌‧twbbs‧org ==============
< From : wtj.cdpa.nsysu.edu.tw >
討論串 (同標題文章)
FreeBSD 近期熱門文章
PTT數位生活區 即時熱門文章