天天看点

centos 修改系统日期、时间

修改日期、时间,需要root用户:

日期:

[root@centOS1 ~]# date -s "2015-12-28"

Mon Dec 28 00:00:00 CST 2015

[root@centOS1 ~]# date

Mon Dec 28 00:00:02 CST 2015

时间:

[root@centOS1 ~]# date -s "9:53:00"

Mon Dec 28 09:53:00 CST 2015

[root@centOS1 ~]# date

Mon Dec 28 09:53:03 CST 2015

继续阅读