Explorar o código

部署脚本中加入ntpd服务

James Iter %!s(int64=8) %!d(string=hai) anos
pai
achega
2772857f02
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      INSTALL.sh

+ 3 - 0
INSTALL.sh

@@ -118,6 +118,9 @@ function prepare() {
 }
 
 function set_ntp() {
+    yum install ntp -y
+    systemctl start ntpd
+    systemctl enable ntpd
     timedatectl set-timezone Asia/Shanghai
     timedatectl set-ntp true
     timedatectl status