{"id":1415,"date":"2012-02-14T11:35:45","date_gmt":"2012-02-14T03:35:45","guid":{"rendered":"http:\/\/doophp.sinaapp.com\/?p=1415"},"modified":"2012-02-14T12:05:31","modified_gmt":"2012-02-14T04:05:31","slug":"ntpd-ntpdate","status":"publish","type":"post","link":"https:\/\/blog.vimge.com\/archives\/linux\/ntpd-ntpdate.html","title":{"rendered":"Linux\u65f6\u95f4\u540c\u6b65\uff1antpd\u3001ntpdate"},"content":{"rendered":"

ntpd VS ntpdate<\/strong><\/p>\n

\u4e24\u8005\u6709\u4e2a\u6bd4\u8f83\u5b9e\u8d28\u6027\u7684\u5dee\u5f02\u662f\uff0cntpd\u5728\u5b9e\u9645\u540c\u6b65\u65f6\u95f4\u65f6\u662f\u4e00\u70b9\u70b9\u7684\u6821\u51c6\u8fc7\u6765\u65f6\u95f4\u7684\uff0c\u6700\u7ec8\u628a\u65f6\u95f4\u6162\u6162\u7684\u6821\u6b63\u5bf9\u3002\u800cntpdate\u4e0d\u4f1a\u8003\u8651\u5176\u4ed6\u7a0b\u5e8f\u662f\u5426\u4f1a\u9635\u75db\uff0c\u76f4\u63a5\u8c03\u6574\u65f6\u95f4.\u4e00\u4e2a\u662f\u6821\u51c6\uff0c\u4e00\u4e2a\u662f\u8c03\u6574\u3002\u53e6\u5916ntpd \u5728\u548c\u65f6\u95f4\u670d\u52a1\u5668\u7684\u540c\u6b65\u8fc7\u7a0b\u4e2d\uff0c\u4f1a\u628a BIOS \u8ba1\u65f6\u5668\u7684\u632f\u8361\u9891\u7387\u504f\u5dee\u2014\u2014\u6216\u8005\u8bf4 Local Clock \u7684\u81ea\u7136\u6f02\u79fb(drift)\u2014\u2014\u8bb0\u5f55\u4e0b\u6765\u3002\u8fd9\u6837\u5373\u4f7f\u7f51\u7edc\u6709\u95ee\u9898\uff0c\u672c\u673a\u4ecd\u7136\u80fd\u7ef4\u6301\u4e00\u4e2a\u76f8\u5f53\u7cbe\u786e\u7684\u8d70\u65f6\u3002<\/p>\n

\u4f7f\u7528ntpd\u8fd8\u9700\u8981\u8003\u8651\u5230\u4e00\u4e2a\u7ec6\u8282\u662f\uff0c\u5982\u679cclient\u4e0eserver\u65f6\u5dee\u5f02\u5e38\u5927\u6216\u8fc7\u5c0f\uff0cntpd\u5c06\u4f1a\u62d2\u7eddserver\u53c2\u8003\u65f6\u95f4\u3002<\/p>\n

\u53e6\u5916\u8fd8\u6709\u4e2a\u672a\u7ecf\u8bc1\u5b9e\u7684\u7ecf\u9a8c\uff0c\u5728\u670d\u52a1\u5668\u538b\u529b\u7279\u522b\u5927\u7684\u60c5\u51b5\u4e0b\uff0cntpdate\u4f1a\u628a\u65f6\u95f4\u5bf9\u9519\uff0c\u6bd4\u5982\u53d8\u62101970-1-1.\u5f15\u7528<\/a><\/small><\/p>\n

\u4e00\u822c\u6765\u8bb2\uff0c\u5c3d\u91cf\u4f7f\u7528ntpd\u4ee3\u66ffntpdate\u6765\u540c\u6b65\u65f6\u95f4\uff0c\u5c3d\u7ba1ntpdate\u6709\u5982\u6b64\u8bdf\u75c5\uff08\u751a\u81f3\u4e00\u4e9b\u7ae5\u978b\u558a\u51fa\u4e0d\u62db\u8058\u6216\u8005\u88c1\u6389\u7528ntpdate\u4ee3\u66ffntpd\u7684\u61d2\u4eba:)\uff09\uff0c\u4f46\u662f\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u8fd8\u662f\u53ef\u4ee5\u8003\u8651ntpdate\u7684\uff1a<\/p>\n