|
|
强制同步时间:8 H1 q3 y! ~- r3 l, `
先停止ntpd服务2 L" e) T6 s$ A0 O( W
5 R5 m: z3 w$ s+ {
systemctl stop ntpd.service
" k. v+ j+ `4 v1 g+ _; b9 T6 D% C 同步时间:
% v' y* E7 s7 [4 c ntpdate -u ntp1.aliyun.com
) P5 J' }% d% R9 S" ^, X* D4 ]()+ a1 u) K/ X+ _, R2 B; h. `
% W7 M1 y" A6 v 将系统时间写入硬件& n( p( h8 |! G, O
) ?0 j0 |. ~! p
# hwclock --systohc; D; a/ J* h1 M7 E7 z
& i+ j( c1 G: W2 g8 ]* F9 M
#hwclock --show
/ i G$ i8 d/ M" rSat 06 Oct 2018 10:42:30 AM CST -0.031985 seconds$ S, y8 B. V# C
% J$ ^8 G5 |; P! M; y
|
|