linux同步修正时间

server:

1. yum -y remove ntpdate  && yum install ntp -y

2. vim /etc/ntp.conf 

 

3. systemctl restart ntpd

4. ntpstat     && ntpq -pn

 

 

 

client 操作

rm -f /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ls -l /etc/localtime

 

ntpdate 192.168.100.208

 

posted @ 2021-09-03 11:29  learnnote  阅读(46)  评论(0)    收藏  举报