共計 307 個字符,預(yù)計需要花費 1 分鐘才能閱讀完成。
在 Ubuntu 系統(tǒng)中,可以通過以下步驟來設(shè)置系統(tǒng)時間同步:
-
打開終端(Ctrl+Alt+T)。
-
使用以下命令安裝 ntpdate 工具:
sudo apt-get update
sudo apt-get install ntpdate
- 使用以下命令手動同步系統(tǒng)時間:
sudo ntpdate ntp.ubuntu.com
- 如果要自動同步系統(tǒng)時間,可以編輯 /etc/crontab 文件,添加以下內(nèi)容:
*/5 * * * * root ntpdate ntp.ubuntu.com
這將使系統(tǒng)每 5 分鐘同步一次時間。
- 重新啟動 cron 服務(wù):
sudo service cron restart
通過以上步驟,就可以設(shè)置 Ubuntu 系統(tǒng)時間同步。
丸趣 TV 網(wǎng) – 提供最優(yōu)質(zhì)的資源集合!
正文完