소스 검색

部署脚本中加入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