Forráskód Böngészése

部署脚本中加入ntpd服务

James Iter 8 éve
szülő
commit
b27d4921ac
1 módosított fájl, 3 hozzáadás és 0 törlés
  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