- Access your linux server via SSH as the root user.
- Execute the following command to automatically install and start the NTP service:
yum install -y ntp;chkconfig ntpd on;ntpdate pool.ntp.org;/etc/init.d/ntpd start;date
In order to set the server's system time, and ensure that it will remain synchronized, we will install NTP (Network Time Protocol) as a service. After completing the installation below, your system will be fully configured with default NTP settings, and will automatically synchronize with the geographically nearest time server to match the server's timezone.
- 1 gebruikers vonden dit artikel nuttig