Linux设置系统时间并同步到硬件

date -s "2018-04-26 08:30:00" && hwclock --systohc

同步到硬件是为了防止非正常关机导致的时间错误

猜你喜欢

转载自www.cnblogs.com/helloemk/p/8949403.html