Tsab ntawv teev npe
Txoj hauv kev yooj yim tshaj plaws yog kom teeb tsa OpenVZ sai kom synchronize lub sijhawm thaj tsam rau NTP server ntawm SSH cov lus txib.
- NTP English lub npe tag nrho yogNetwork Time Protocol.
OpenVZ yog dab tsi?
- OpenVZ yog raws liLinuxOS-level virtualization technology rau cov ntsiav.
- OpenVZ tso cai rau lub cev servers khiav ntau lub tshuab ua haujlwm, ib qho kev siv tshuab feem ntau siv hauv virtual private servers.
Ua ntej, rho tawm lub sijhawm hauv cheeb tsam ▼
rm -rf /etc/localtime
Hloov lub sijhawm rau thaj tsam +8 ▼
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
Saib lub sijhawm teem caij ▼
date -R
Yuav hloov li casCentOS 7 lub sijhawm system?
Tom ntej no, hloov kho lub sijhawm CentOS 7 thiab teeb tsa OpenVZ synchronization lub sijhawm rau NTP server kom synchronize nrog lub sijhawm server.
Nruab NTP ▼
yum install -y ntp
Debug saib lub sijhawm sib txawv ▼
ntpdate -d us.pool.ntp.org
Sync lub sijhawm ▼
ntpdate us.pool.ntp.org
Xyuas seb lub sijhawm synchronized ▼
date -R
Hloov kho NTP cov ntaub ntawv teeb tsa ▼
vi /etc/sysconfig/ntpd
Synchronize lub moos kho vajtse ntawm tus tswv tsev standalone ▼
SYNC_HWCLOCK=yes
Teeb tsa kom pib qhov kev pabcuam NTP thaum pib, thiab cia li synchronize lub sijhawm tsis tu ncua ▼
systemctl enable ntpd.service
Pib NTP synchronization ▼
systemctl start ntpd.service
Cia siab Chen Weiliang Blog ( https://www.chenweiliang.com/ ) qhia "CentOS7 hloov kho lub sijhawm li cas? OpenVZ Synchronize Time Zone rau NTP Server" los pab koj.
Zoo siab txais tos los qhia qhov txuas ntawm kab lus no:https://www.chenweiliang.com/cwl-1307.html
Zoo siab txais tos rau Telegram channel ntawm Chen Weiliang blog kom tau txais qhov hloov tshiab tshiab!
📚 Daim ntawv qhia no muaj nuj nqis loj, 🌟Qhov no yog lub sijhawm tsis tshua muaj, tsis txhob nco nws! ⏰⌛💨
Share thiab like yog tias koj nyiam!
Koj qhov kev sib koom thiab kev nyiam yog peb qhov kev txhawb nqa tas mus li!