码迷,mamicode.com
首页 >  
搜索关键字:内网时间服务器    ( 2个结果
ansible同步Linux时间(原创)
同步服务器的时间一般是用ntpd,出于安全性考虑不是所有的服务器都能上网,需要在内网建立一个时间服务器,再和内网时间服务器同步。 我比较喜欢简单一点,直接通过 date -s "2018-08-08 09:33:00"同步时间。 使用命令 ansible sap -m shell -a "date ...
分类:系统相关   时间:2018-08-08 13:34:54    阅读次数:154
centos 内网时间同步ntp配置方法
[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
2条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!