同步服務器的時間

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
相關文章
相關標籤/搜索