debian修改服务器时间
1 2 3 4 5 6 7 8 9 10 |
1. 查看时间 date; 2. 查看硬件时间 hwclock 3. 修改时间 date -s “要修改的时间” 4. 修改硬件时间 hwclock -w 5. 同步硬件时钟(hwclock)到系统时间(date): hwclock <span class="token parameter variable">--hctosys</span> 6. 同步系统时间(date)到硬件时钟(hwclock): hwclock <span class="token parameter variable">--systohc </span> |