Method for automatic connection NTP Server under Linux

xiaoxiao2021-03-06  115

1. At the command prompt: crontab -e

2. The above command opens a file and inserts the following line in VI INSERT mode:

Path = / usr / bin: / usr / sbin: / sbin: / bin: / usr / local / bin

HOME = / root

# Run-Parts

* / 5 * * * * ntpdate tick.stdtime.gov.tw

* / 5 * * * * HWCLOCK -W

3. Save exit.

转载请注明原文地址:https://www.9cbs.com/read-100866.html

New Post(0)