- 設置時區
timedatectl set-timezone Asia/Shanghai
- 同步時間
yum -y install ntp ntpdate
ntpdate time.windows.com
- the NTP socket is in use, exiting
[root@localhost system]# ps aux | grep ntpd
root 42477 0.0 0.0 112712 960 pts/0 S+ 02:45 0:00 grep --color=auto ntpd
root 108345 0.0 0.0 29952 2056 ? Ss 01:40 0:00 ntpd
[root@localhost system]# kill 108345
[root@localhost system]# ps aux | grep ntpd