设置时间
#date //显示当前日期
#date -s //设置当前时间,只有root权限才能设置,其他只能查看。
#date -s 20061010 //设置成20061010,这样会把具体时间设置成空00:00:00
#date -s 12:23:23 //设置具体时间,不会对日期做更改
#date -s “12:12:23 2006-10-10″ //这样可以设置全部时间
设置时区
You may add the following line to the file /root/.profile to change the time zone.
TZ='Asia/Shanghai'; export TZ
Or use this command.
/usr/bin/tzselect