欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

linux怎样自动校正时间?

linux服务器的时间经常不对,过几天就要相差几分钟,怎样才能自动校正,有没有这方面的小程序或是什么方法?



最佳答案

Linux系统设置自动同步网上时间

1.  安装ntp工具

1
sudo apt-get install ntp


2.  设置网络时间同步服务器

1
2
3
vim /etc/ntp.conf
server ntp.ubuntu.com
#从Ubuntu官方NTP服务器同步时间


3.  启动NTP服务

1
/etc/init.d/ntp start



来自  https://zhidao.baidu.com/question/585857949.html

普通分类: