由于老虎板時間顯示不對,只好修改ntp來配置了。
1. 打開ntp服務的配置文件
sudo nano /etc/ntp.conf
找到下面這兩行
# You do need to talk to an NTP server or two (or three)。
# server ntp.your-provider.example
在其后添加國內(nèi)可用的ntp服務器:
server ntp.fudan.edu.cn iburst perfer
server time.asia.apple.com iburst
server asia.pool.ntp.org iburst
server ntp.nict.jp iburst
server time.nist.gov iburst

上述第一行最后的perfer表示優(yōu)先使用復旦大學的ntp服務器。
按Ctrl+X保存退出。
然后重啟ntp服務:
sudo /etc/init.d/ntp restart
現(xiàn)在時間顯示慢八個小時,顯然時區(qū)有問題,設置時區(qū)
sudo dpkg-reconfigure tzdata
然后按提示選擇asia/shanghai
現(xiàn)在再輸入date,可以看到已經(jīng)是北京時間了。

-
NTP
+關注
關注
1文章
252瀏覽量
14955 -
Tigerboard
+關注
關注
0文章
1瀏覽量
1656
發(fā)布評論請先 登錄
Android開發(fā)各類常見錯誤解決方案【值得收藏】
請問Gobian怎樣點亮TigerBoard上的LED?
C2000?? MCU提示“flash is not available on this device”錯誤的解決方案
Tigerboard時間顯示錯誤的解決方案
評論