码迷,mamicode.com
首页 > 其他好文 > 详细

树莓派实现开机自动同步网络时间

时间:2017-07-18 20:59:58      阅读:196      评论:0      收藏:0      [点我收藏+]

标签:操作系统   span   操作   开机   mirror   pool   ntpdate   同步时间   时间   

硬件:树莓派3B

操作系统:RASPBIAN JESSIE LITE

 

1 #安装NTP
2 sudo apt-get install ntpdate
3 #选择 上海时区
4 sudo dpkg-reconfigure tzdata
#同步时间
#添加到/etc/rc.local里面实现开机自启动
sudo ntpdate cn.pool.ntp.org
#查看当前时间
date

 

树莓派实现开机自动同步网络时间

标签:操作系统   span   操作   开机   mirror   pool   ntpdate   同步时间   时间   

原文地址:http://www.cnblogs.com/cjxltd/p/7202467.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!