在linux中设置时间/日期?? [英] Setting Time/Date in linux??

查看:99
本文介绍了在linux中设置时间/日期??的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..


我正在研发开发板上的Arm-linux操作系统。每当电路板复位时,操作系统都会重置时间和日期。有没有什么方法可以运行脚本来设置时间/日期而不是手动设置它?


谢谢..

Hi..

I am working on Arm-linux os on developement board. The OS reset the time and date whenever the board is reset. Is there any way that i can run a script to set the time/date instead of manually setting it?

Thanks..

推荐答案


嗨..


我正在研发开发板上的Arm-linux操作系统。每当电路板复位时,操作系统都会重置时间和日期。有没有什么方法可以运行脚本来设置时间/日期而不是手动设置它?


谢谢..
Hi..

I am working on Arm-linux os on developement board. The OS reset the time and date whenever the board is reset. Is there any way that i can run a script to set the time/date instead of manually setting it?

Thanks..



如果主板具有网络访问权限,您可能希望设置并运行NTP。否则,即使关闭设备,您也需要继续为设备供电。

Provided the board has network access, you may want to get NTP set up and running. Otherwise you will need to keep power to the device even when it is off.



如果主板具有网络访问权限,您可能需要让NTP设置并运行。否则,即使设备关闭,您也需要为设备供电。
Provided the board has network access, you may want to get NTP set up and running. Otherwise you will need to keep power to the device even when it is off.



是的..所以我该如何运行?谢谢...

Yup.. so how do i get that running? thanks...



Yup ..所以我该如何运行?谢谢...
Yup.. so how do i get that running? thanks...



我提出了两个解决方案,你想弄清哪一个?

I proposed two solutions, which one are you trying to figure out?


这篇关于在linux中设置时间/日期??的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆