如何快速配置CentOS的時間同步

2021-07-10 04:25:52 字數 464 閱讀 7488

快速配置linux的時間同步

1、設定時間同步的地區

cp /usr/share/zoneinfo/asia/shanghai /etc/localtime

中國貌似只有上海同步伺服器

2、執行時間同步程式

ntpdate us.pool.ntp.org

如果提示沒有ntpdate則yum安裝一下

yum install -y ntpdate

3、加入定時計畫任務

crontab -e

0-59/10 * * * * /usr/sbin/ntpdate us.pool.ntp.org | logger -t ntp

在每小時的0-59分鐘中,每隔10分鐘同步一次

CentOS下快速配置VNC Server

一 啟動vnc server服務 使用vncserver命令 會在當前使用者主目錄下生成.vnc資料夾 root cpaynet005 vncserver you will require a password to access your desktops.password 輸入密碼 verify...

CentOS 5 3 快速配置VNC Server

centos 5.3預設已經安裝了vnc server軟體包,只要在服務列表中選中啟動一下就可以。通過編輯檔案 home vnc xstartup來啟動你喜歡的視窗管理器。使用startkde 來啟動kde,使用 gnome session 來啟動gnome。一 啟動vnc server服務 使用v...

阿里雲CentOS快速配置教程

centos community enterprise operating system,中文意思是 社群企業作業系統 是linux發行版之一,它是來自於red hat enterprise linux依照開放源 規定發布的源 所編譯而成。由於出自同樣的源 因此有些要求高度穩定性的伺服器以cento...