Bladeren bron

部署脚本中加入ntpd服务

James Iter 8 jaren geleden
bovenliggende
commit
2772857f02
1 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. 3 0
      INSTALL.sh

+ 3 - 0
INSTALL.sh

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