由于老虎板時間顯示不對,只好修改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
在其后添加國內可用的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表示優先使用復旦大學的ntp服務器。
按Ctrl+X保存退出。
然后重啟ntp服務:
sudo /etc/init.d/ntp restart
現在時間顯示慢八個小時,顯然時區有問題,設置時區
sudo dpkg-reconfigure tzdata
然后按提示選擇asia/shanghai
現在再輸入date,可以看到已經是北京時間了。
-
NTP
+關注
關注
1文章
179瀏覽量
13942 -
Tigerboard
+關注
關注
0文章
1瀏覽量
1571
發布評論請先 登錄
相關推薦

Android開發各類常見錯誤解決方案【值得收藏】
C2000?? MCU提示“flash is not available on this device”錯誤的解決方案

評論