欢迎各位兄弟 发布技术文章
这里的技术是共享的
linux服务器的时间经常不对,过几天就要相差几分钟,怎样才能自动校正,有没有这方面的小程序或是什么方法?
Linux系统设置自动同步网上时间
1. 安装ntp工具
sudo
apt-get
install
ntp
2. 设置网络时间同步服务器
vim
/etc/ntp
.conf
server ntp.ubuntu.com
#从Ubuntu官方NTP服务器同步时间
3. 启动NTP服务
/etc/init
.d
/ntp
start
来自 https://zhidao.baidu.com/question/585857949.html