Ubuntu 16 时间同步

来源:互联网 发布:淘宝递四方价格 编辑:程序博客网 时间:2024/04/28 02:09

1、  安装ntpdate

sudo apt-get install ntpdate

2、  执行同步命令

sudo ntpdate time.windows.com

3、  如果是server版本,切换时区

ubuntu16提示tzconfig已过时,


WARNING: the tzconfig command is deprecated, please use:
 dpkg-reconfigure tzdata

sudo dpkg-reconfigure tzdata

4、  查看时间

date

0 0
原创粉丝点击