瀏覽代碼

部署脚本中加入ntpd服务

James Iter 8 年之前
父節點
當前提交
b27d4921ac
共有 1 個文件被更改,包括 3 次插入0 次删除
  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