Centos7 設置時間和時區

  1. 設置時區
timedatectl set-timezone Asia/Shanghai
  1. 同步時間
 yum -y install ntp ntpdate
 ntpdate time.windows.com
  1. 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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章