同步Linux中的系统时间

#手动同步时间

date -s “2018-8-5 00:00:00”

#网络同步时间

安装ntpdate软件用于效验时间

yum install ntpdate

输入指令进行效验时间,更新系统时间,使系统时间一致

ntpdate cn.pool.ntp.org

 

 

然后输入chkconfig ntpdate on使系统进行自动效验

猜你喜欢

转载自blog.csdn.net/weixin_41109857/article/details/81417363
今日推荐