NTP configure 时间服务器

来源:互联网 发布:c语言简单程序100例 编辑:程序博客网 时间:2024/05/17 14:14
**Install ntpd**If ntpd is not installed use any one of the following command to install ntpd:# yum install ntpOR# up2date ntpConfigurationYou should at least set following parameter in /etc/ntp.conf config file:server <Time Server Name or IP Address>For example, open /etc/ntp.conf file using vi text editor:# vi /etc/ntp.confLocate server parameter and set it as follows:server pool.ntp.orgSave the file and restart the ntpd service:# /etc/init.d/ntpd startYou can synchronize the system clock to an NTP server immediately with following command:# ntpdate pool.ntp.org

Output:

5 May 14:36:01 ntpdate[5257]: adjust time server 61.206.115.3 offset -0.343242 sec
desc:use ” ntpdate -u pool.ntp.org ”If your server is behind firewall.
0 0
原创粉丝点击