forked from yindun/ansible-devops
更新 scripts/system_optimize.sh
This commit is contained in:
parent
6aa373638e
commit
9c4d339e74
|
|
@ -44,7 +44,7 @@ set_timezone_to_shanghai() {
|
|||
synchronize_hardware_clock() {
|
||||
log_info "同步硬件时钟和系统时钟..."
|
||||
# 使用hwclock命令将系统时间同步到硬件时钟
|
||||
apt update && apt install util-linux -y && hwclock --systohc
|
||||
apt update && apt install util-linux-extra -y && hwclock --systohc
|
||||
log_info "硬件时钟和系统时钟已同步"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue