1.查看服务器的时间bash
-bash-4.1$ date Sat Feb 3 09:39:07 CST 2018 -bash-4.1$
2.设置服务器的时间 date -s 时间/日期服务器
# date -s 09:24:25 Sat Feb 3 09:24:25 CST 2018
3.查看时间code
# hwclock Sat 03 Feb 2018 09:37:57 AM CST -0.125885 seconds
4.同步时间同步
# hwclock --hctosys