linux設置時區同步時間

 linux設置時區同步時間

1、運行tzselect
sudo tzselect
ubuntu <wbr>server設置時區和更新時間
在這裏咱們選擇亞洲 Asia,確認以後選擇中國(China),最後選擇北京(Beijing)
如圖:
ubuntu <wbr>server設置時區和更新時間

 
2、複製文件到/etc目錄下
sudo cp /usr/share/zoneinfo/Asia/Shanghai  /etc/localtime
 
3、更新時間
sudo ntpdate time.windows.com
 
4、寫入硬件
sudo hwclock -w
相關文章
相關標籤/搜索