Ubuntu 16.04 LTS 设定时区 同步时间

来源:互联网 发布:python upper函数 编辑:程序博客网 时间:2024/05/18 01:52

设定时区:dpkg-reconfigure tzdata

           选择Asia -> 再选择Shanghai -> OK




同步时间命令:

           1、sudo apt-get install ntpdate // 安装时间同步工具


           2、sudo ntpdate cn.pool.ntp.org // 与网络服务器同步时间

 

          3、date // 查看时间是否已同步

原创粉丝点击