命令:
# ntpdate ip (同步时间服务器ip)
#hwclock -w //将时间写入硬件
例子
ntpdate 210.167.182.10
同步时间服务器:
server
ntp-sop.inria.frserver 210.72.145.44(中国国家授时中心服务器IP地址)
server ntp.sjtu.edu.cn(上海交通大学网络中心NTP服务器地址)
查看评论 回复
嵌入式交流网主页 >
嵌入式操作系统 >
Linux > linux系统中ntpdate同步网络日期时间