同步服务器的时间一般是用ntpd,出于安全性考虑不是所有的服务器都能上网,需要在内网建立一个时间服务器,再和内网时间服务器同步。 我比较喜欢简单一点,直接通过 date -s "2018-08-08 09:33:00"同步时间。 使用命令 ansible sap -m shell -a "date ...
分类:
系统相关 时间:
2018-08-08 13:34:54
阅读次数:
154
[root@bj-1 mysql]# cat /etc/sysconfig/ntpdate # Options for ntpdateOPTIONS="-U ntp -s -b"# Number of retries before giving upRETRIES=2# Set to 'yes' to sync hw clock after succe
分类:
其他好文 时间:
2018-05-04 18:22:51
阅读次数:
298