linux 更改服务器时间

来源:互联网 发布:php 淘宝订单管理系统 编辑:程序博客网 时间:2024/05/16 06:39

可以使用两种方法更改服务器时间

 

1.与远程的一台机器同步

 

ntpdate      traffic.lzu.edu.cn (内网)

 

ntpdate    pool.ntp.org    (外网)

 

2.使用date更改

 

date    月、日、小时、分钟、年