由于老虎板时间显示不对,只好修改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文章
184浏览量
13985 -
Tigerboard
+关注
关注
0文章
1浏览量
1575
发布评论请先 登录
相关推荐
![](https://file1.elecfans.com/web2/M00/84/62/wKgaomRmBViARIRxAACMFNuLnfA833.png)
Android开发各类常见错误解决方案【值得收藏】
C2000™︎ MCU提示“flash is not available on this device”错误的解决方案
![C2000™︎ MCU提示“flash is not available on this device”<b class='flag-5'>错误</b>的<b class='flag-5'>解决方案</b>](https://file.elecfans.com/web1/M00/D9/4E/pIYBAF_1ac2Ac0EEAABDkS1IP1s689.png)
评论