{"id":5011,"date":"2025-09-18T15:00:10","date_gmt":"2025-09-18T06:00:10","guid":{"rendered":"https:\/\/www.miraiserver.ne.jp\/column\/?p=5011"},"modified":"2025-09-17T18:18:32","modified_gmt":"2025-09-17T09:18:32","slug":"about_ntp-linux","status":"publish","type":"post","link":"https:\/\/www.miraiserver.ne.jp\/column\/about_ntp-linux\/","title":{"rendered":"Linux\u3067NTP\u6642\u523b\u540c\u671f<br>Chrony\u8a2d\u5b9a\u304b\u3089\u30c8\u30e9\u30d6\u30eb\u5bfe\u51e6\u307e\u3067\u89e3\u8aac\uff01"},"content":{"rendered":"<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-5009 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/Linux\u3067NTP\u6642\u523b\u540c\u671f.png\" alt=\"\" width=\"900\" height=\"500\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/Linux\u3067NTP\u6642\u523b\u540c\u671f.png 900w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/Linux\u3067NTP\u6642\u523b\u540c\u671f-300x167.png 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/Linux\u3067NTP\u6642\u523b\u540c\u671f-640x356.png 640w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/Linux\u3067NTP\u6642\u523b\u540c\u671f-768x427.png 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u30b7\u30b9\u30c6\u30e0\u904b\u7528\u306b\u304a\u3044\u3066\u300c\u6642\u523b\u306e\u6b63\u78ba\u6027\u300d\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3084\u4fe1\u983c\u6027\u306e\u57fa\u76e4\u3067\u3059\u3002<br \/>\nLinux\u30b5\u30fc\u30d0\u30fc\u3067\u3082\u30ed\u30b0\u306e\u6574\u5408\u6027\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5bfe\u7b56\u306e\u305f\u3081\u306b\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7d4c\u7531\u3067\u6b63\u78ba\u306a\u6642\u523b\u3092\u540c\u671f\u3059\u308b<strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">NTP\uff08Network Time Protocol\uff09<\/span><\/strong>\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002<br \/>\n\u672c\u8a18\u4e8b\u3067\u306f\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">NTP\u306e\u4ed5\u7d44\u307f\u3084Chrony\u3068\u306e\u9055\u3044\u304b\u3089\u3001Linux\u3067\u306e\u8a2d\u5b9a\u65b9\u6cd5\u30fb\u78ba\u8a8d\u30b3\u30de\u30f3\u30c9\u30fb\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u307e\u3067<\/span>\u3001\u521d\u5fc3\u8005\u306e\u65b9\u306b\u3082\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<div class=\"well2\" style=\"text-align: center;\">\n<p style=\"text-align: center;\"><span style=\"color: #ff0000;\"><strong>\uff3c 2\u9031\u9593\u7121\u6599\u3067\u304a\u8a66\u3057\u3067\u304d\u307e\u3059\uff01 \uff0f<br \/>\n<a href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-frame-btn&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-110 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_300x250_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"300\" height=\"250\" \/><\/a><\/strong><\/span><span style=\"text-decoration: underline;\"><strong>Unix\/Linux\u7cfbVPS\u3092\u3053\u306e\u4fa1\u683c\u3067\uff01<\/strong><\/span><span style=\"color: #ff0000;\"><strong><br \/>\n<\/strong><\/span>\u30fb<span style=\"font-size: 14px;\">\u5168\u30d7\u30e9\u30f3SSD\u642d\u8f09\u3067\u30b3\u30b9\u30c8\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u25ce<\/span><br \/>\n<span style=\"font-size: 14px;\">\u30fb\u8c4a\u5bcc\u306aOS\u30e9\u30a4\u30f3\u30a2\u30c3\u30d7<\/span><br \/>\n<span style=\"font-size: 14px;\">\u30fb\u5145\u5b9f\u306e\u7121\u6599\u30b5\u30dd\u30fc\u30c8<\/span><br \/>\n<a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-frame-btn&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\">VPS\u3092\u4f7f\u3063\u3066\u307f\u308b<\/a><\/p>\n<\/div>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">\u76ee\u6b21<\/p><ul class=\"toc_list\"><li><a href=\"#NTP\"><span class=\"toc_number toc_depth_1\">1<\/span> NTP\u3068\u306f\uff1f\u6642\u523b\u540c\u671f\u306e\u4ed5\u7d44\u307f\u3068\u91cd\u8981\u6027<\/a><ul><li><a href=\"#i\"><span class=\"toc_number toc_depth_2\">1.1<\/span> \u6982\u8981<\/a><\/li><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_2\">1.2<\/span> \u306a\u305c\u6642\u523b\u306e\u540c\u671f\u304c\u5fc5\u8981\u306a\u306e\u304b<\/a><\/li><li><a href=\"#NTP-2\"><span class=\"toc_number toc_depth_2\">1.3<\/span> NTP\u306e\u968e\u5c64\u69cb\u9020\u3068\u30b5\u30fc\u30d0\u30fc\u306e\u5f79\u5272<\/a><\/li><\/ul><\/li><li><a href=\"#LinuxNTP\"><span class=\"toc_number toc_depth_1\">2<\/span> Linux\u306b\u304a\u3051\u308b\u6642\u523b\u7ba1\u7406\u306e\u4ed5\u7d44\u307f\u3068NTP\u306e\u5f79\u5272<\/a><ul><li><a href=\"#i-3\"><span class=\"toc_number toc_depth_2\">2.1<\/span> \u30b7\u30b9\u30c6\u30e0\u30af\u30ed\u30c3\u30af\u3068\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30af\u30ed\u30c3\u30af\u306e\u9055\u3044<\/a><\/li><li><a href=\"#ChronyNTPntpd\"><span class=\"toc_number toc_depth_2\">2.2<\/span> Chrony\u3068NTP\uff08ntpd\uff09\u306e\u9055\u3044<\/a><\/li><\/ul><\/li><li><a href=\"#NTP-3\"><span class=\"toc_number toc_depth_1\">3<\/span> NTP\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u7bc9\u624b\u9806<\/a><ul><li><a href=\"#chrony\"><span class=\"toc_number toc_depth_2\">3.1<\/span> chrony\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30b5\u30fc\u30d3\u30b9\u5236\u5fa1<\/a><\/li><li><a href=\"#NTP-4\"><span class=\"toc_number toc_depth_2\">3.2<\/span> \u5916\u90e8NTP\u30b5\u30fc\u30d0\u30fc\u306e\u6307\u5b9a\u65b9\u6cd5<\/a><\/li><li><a href=\"#i-4\"><span class=\"toc_number toc_depth_2\">3.3<\/span> \u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u3068\u30dd\u30fc\u30c8\u958b\u653e<\/a><\/li><li><a href=\"#LANNTP\"><span class=\"toc_number toc_depth_2\">3.4<\/span> LAN\u5185\u3067NTP\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u6642\u523b\u914d\u4fe1\u3059\u308b\u8a2d\u5b9a<\/a><\/li><\/ul><\/li><li><a href=\"#NTP-5\"><span class=\"toc_number toc_depth_1\">4<\/span> NTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8a2d\u5b9a\u3068\u6642\u523b\u540c\u671f\u306e\u78ba\u8a8d\u65b9\u6cd5<\/a><ul><li><a href=\"#NTPchronyconf\"><span class=\"toc_number toc_depth_2\">4.1<\/span> NTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\uff08`chrony.conf`\uff09<\/a><\/li><li><a href=\"#ntpq_-p_chronyc_tracking\"><span class=\"toc_number toc_depth_2\">4.2<\/span> \u540c\u671f\u72b6\u6cc1\u306e\u78ba\u8a8d\u30b3\u30de\u30f3\u30c9\uff08`ntpq -p`, `chronyc tracking`\u306a\u3069\uff09<\/a><\/li><li><a href=\"#ntpdate_chronyd_-q\"><span class=\"toc_number toc_depth_2\">4.3<\/span> \u624b\u52d5\u3067\u306e\u6642\u523b\u66f4\u65b0\u30b3\u30de\u30f3\u30c9\uff08`ntpdate`, `chronyd -q`\u306a\u3069\uff09<\/a><\/li><\/ul><\/li><li><a href=\"#i-5\"><span class=\"toc_number toc_depth_1\">5<\/span> \u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u3068\u5bfe\u51e6\u6cd5<\/a><ul><li><a href=\"#i-6\"><span class=\"toc_number toc_depth_2\">5.1<\/span> \u540c\u671f\u3067\u304d\u306a\u3044\u3068\u304d\u306e\u539f\u56e0\uff08\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30fb\u8a2d\u5b9a\u30df\u30b9\u306a\u3069\uff09<\/a><\/li><li><a href=\"#journalctl_varlog\"><span class=\"toc_number toc_depth_2\">5.2<\/span> \u30ed\u30b0\u306e\u78ba\u8a8d\u65b9\u6cd5\u3068\u5bfe\u51e6\uff08`journalctl`, `\/var\/log\/`\uff09<\/a><\/li><li><a href=\"#i-7\"><span class=\"toc_number toc_depth_2\">5.3<\/span> \u6642\u523b\u304c\u30ba\u30ec\u308b\u3068\u304d\u306e\u4fee\u6b63\u30dd\u30a4\u30f3\u30c8\u3068\u30b3\u30de\u30f3\u30c9<\/a><\/li><\/ul><\/li><li><a href=\"#i-8\"><span class=\"toc_number toc_depth_1\">6<\/span> \u307e\u3068\u3081<\/a><\/li><li><a href=\"#CentOSVPS\"><span class=\"toc_number toc_depth_1\">7<\/span> CentOS\u3092VPS\u3067\u5229\u7528\u3059\u308b\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/a><\/li><\/ul><\/div>\n<h2 class=\"styled_h2\"><span id=\"NTP\">NTP\u3068\u306f\uff1f\u6642\u523b\u540c\u671f\u306e\u4ed5\u7d44\u307f\u3068\u91cd\u8981\u6027<\/span><\/h2>\n<h3 class=\"styled_h3\"><span id=\"i\">\u6982\u8981<\/span><\/h3>\n<p><strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">NTP\uff08Network Time Protocol\uff09<\/span><\/strong>\u3068\u306f\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7d4c\u7531\u3067\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u3084\u30b5\u30fc\u30d0\u30fc\u306e\u6642\u523b\u3092\u6b63\u78ba\u306b\u540c\u671f\u3055\u305b\u308b\u305f\u3081\u306e\u30d7\u30ed\u30c8\u30b3\u30eb<\/span>\u3067\u3059\u3002<br \/>\nNTP\u306f\u975e\u5e38\u306b\u53e4\u304f\u304b\u3089\u4f7f\u308f\u308c\u3066\u304a\u308a\u3001\u8aa4\u5dee\u3092\u30df\u30ea\u79d2\u5358\u4f4d\u3067\u6291\u3048\u3089\u308c\u308b\u9ad8\u7cbe\u5ea6\u304c\u7279\u9577\u3067\u3059\u3002<br \/>\n\u6642\u523b\u30ba\u30ec\u306f\u904b\u7528\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u91cd\u5927\u306a\u5f71\u97ff\u3092\u53ca\u307c\u3059\u305f\u3081\u3001\u30b5\u30fc\u30d0\u30fc\u904b\u7528\u3067\u306fNTP\u306e\u5c0e\u5165\u304c\u5fc5\u9808\u3067\u3059\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"i-2\">\u306a\u305c\u6642\u523b\u306e\u540c\u671f\u304c\u5fc5\u8981\u306a\u306e\u304b<\/span><\/h3>\n<p>\u6642\u523b\u540c\u671f\u304c\u305a\u308c\u3066\u3044\u308b\u3068\u3001\u30b7\u30b9\u30c6\u30e0\u306b\u6df1\u523b\u306a\u554f\u984c\u3092\u5f15\u304d\u8d77\u3053\u3057\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u30ed\u30b0\u306e\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u304c\u5b9f\u969b\u306e\u767a\u751f\u6642\u523b\u3068\u7570\u306a\u308a\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u969c\u5bb3\u5bfe\u5fdc\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5206\u6790\u306b\u652f\u969c<\/span>\u3092\u304d\u305f\u3057\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">SSL\/TLS\u8a3c\u660e\u66f8\u306e\u6709\u52b9\u671f\u9650\u7ba1\u7406\u3084\u3001\u5404\u7a2e\u8a8d\u8a3c\u30d7\u30ed\u30c8\u30b3\u30eb\u306b\u3082\u6b63\u78ba\u306a\u6642\u523b\u304c\u5fc5\u8981<\/span>\u3067\u3059\u3002<br \/>\n\u7279\u306b\u8907\u6570\u53f0\u306e\u30b5\u30fc\u30d0\u30fc\u3092\u9023\u643a\u3057\u3066\u904b\u7528\u3059\u308b\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u3059\u3079\u3066\u306e\u30b5\u30fc\u30d0\u30fc\u304c\u540c\u3058\u6642\u9593\u3092\u5171\u6709\u3067\u304d\u306a\u3051\u308c\u3070\u3001\u30c7\u30fc\u30bf\u306e\u6574\u5408\u6027\u53ef\u7528\u6027\u3092\u7dad\u6301\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\u305d\u306e\u305f\u3081NTP\u306b\u3088\u308b\u6642\u523b\u540c\u671f\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u4fe1\u983c\u6027\u3092\u62c5\u4fdd\u3059\u308b\u305f\u3081\u306e\u57fa\u672c\u8981\u4ef6\u3068\u3044\u3048\u307e\u3059\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"NTP-2\">NTP\u306e\u968e\u5c64\u69cb\u9020\u3068\u30b5\u30fc\u30d0\u30fc\u306e\u5f79\u5272<\/span><\/h3>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-thumbnail wp-image-5013\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/\u753b\u50cf1-3-1-533x360.png\" alt=\"\" width=\"533\" height=\"360\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/\u753b\u50cf1-3-1-533x360.png 533w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/\u753b\u50cf1-3-1-300x202.png 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/\u753b\u50cf1-3-1.png 606w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><br \/>\nNTP\u306f<strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">Stratum\uff08\u968e\u5c64\uff09\u69cb\u9020<\/span><\/strong>\u3068\u3044\u3046\u6982\u5ff5\u3067\u69cb\u6210\u3055\u308c\u3066\u304a\u308a\u3001\u4e0a\u4f4d\u5c64\u304b\u3089\u4e0b\u4f4d\u5c64\u3078\u3068\u6b63\u78ba\u306a\u6642\u523b\u304c\u4f1d\u9054\u3055\u308c\u307e\u3059\u3002<\/p>\n<ul>\n<li><span style=\"color: #ff9900;\"><strong>Stratum 0<\/strong><\/span>\uff1a<span style=\"color: #000000;\">\u539f\u5b50\u6642\u8a08\u3084GPS\u306a\u3069\u3001\u6b63\u78ba\u306a\u6642\u523b\u3092\u6301\u3064\u88c5\u7f6e\uff08\u203b\u76f4\u63a5\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u306f\u4e0d\u53ef\uff09<\/span><\/li>\n<li><span style=\"color: #ff9900;\"><strong>Stratum 1<\/strong><\/span>\uff1a<span style=\"color: #000000;\">Stratum 0\u306b\u63a5\u7d9a\u3057\u3001\u6642\u523b\u3092\u53d6\u5f97\u30fb\u914d\u4fe1\u3059\u308b\u6700\u4e0a\u4f4d\u306eNTP\u30b5\u30fc\u30d0\u30fc<\/span><\/li>\n<li><span style=\"color: #ff9900;\"><strong>Stratum 2<\/strong><\/span>\uff1a<span style=\"color: #000000;\">Stratum 1\u304b\u3089\u6642\u523b\u3092\u53d7\u3051\u53d6\u308a\u3001\u4ed6\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3084\u30b5\u30fc\u30d0\u30fc\u3078\u914d\u4fe1<\/span><\/li>\n<li><span style=\"color: #ff9900;\"><strong>Stratum 3\u4ee5\u964d<\/strong><\/span>\uff1a<span style=\"color: #000000;\">\u3055\u3089\u306b\u4e0b\u5c64\u306e\u30b5\u30fc\u30d0\u30fc\u3067\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5185\u3067\u6642\u523b\u3092\u4e2d\u7d99<\/span><\/li>\n<\/ul>\n<p>Stratum 0\u306f\u539f\u5b50\u6642\u8a08\u306a\u3069\u306e\u7269\u7406\u7684\u306a\u6b63\u78ba\u306a\u6642\u523b\u6e90\u3092\u6307\u3057\u307e\u3059\u3002<br \/>\nStratum 1\u306f\u305d\u306e\u6642\u523b\u3092\u76f4\u63a5\u53d7\u3051\u53d6\u308a\u3001\u4e0b\u4f4d\u5c64\u306b\u57fa\u6e96\u6642\u523b\u3092\u63d0\u4f9b\u3059\u308b\u30b5\u30fc\u30d0\u30fc\u3067\u3059\u3002<br \/>\nStratum 2\u4ee5\u964d\u306f\u305d\u306e\u4e0a\u4f4d\u5c64\u304b\u3089\u6642\u523b\u3092\u540c\u671f\u3057\u3066\u3044\u304f\u5f62\u3067\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u4f01\u696d\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u306f\u3001Stratum 2\u301c3\u3092\u5229\u7528\u3059\u308b\u306e\u304c\u4e00\u822c\u7684<\/span>\u3067\u3059\u3002<br \/>\n\u307e\u305f\u3001\u793e\u5185\u3067\u72ec\u81ea\u306eNTP\u30b5\u30fc\u30d0\u30fc\u3092\u8a2d\u7f6e\u3057\u3066\u3001LAN\u5185\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u914d\u4fe1\u3059\u308b\u69cb\u6210\u3082\u5e83\u304f\u63a1\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"well2\" style=\"text-align: center;\">\n<p style=\"text-align: center;\"><span style=\"color: #008000;\"><strong>CentOS<\/strong>\u3092<strong>VPS<\/strong>\u3067\u5229\u7528\u3059\u308b\u306a\u3089<\/span><strong style=\"font-size: 16px;\"><span style=\"color: #339966;\"><br \/>\n\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/span><\/strong><br \/>\n<strong>\uff3c 2\u9031\u9593\u7121\u6599\u3067\u304a\u8a66\u3057\u3067\u304d\u307e\u3059\uff01 \uff0f<\/strong><br \/>\n<a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-frame-btn&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\">VPS\u3092\u4f7f\u3063\u3066\u307f\u308b<\/a><\/p>\n<\/div>\n<h2 class=\"styled_h2\"><span id=\"LinuxNTP\">Linux\u306b\u304a\u3051\u308b\u6642\u523b\u7ba1\u7406\u306e\u4ed5\u7d44\u307f\u3068NTP\u306e\u5f79\u5272<\/span><\/h2>\n<h3 class=\"styled_h3\"><span id=\"i-3\">\u30b7\u30b9\u30c6\u30e0\u30af\u30ed\u30c3\u30af\u3068\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30af\u30ed\u30c3\u30af\u306e\u9055\u3044<\/span><\/h3>\n<p>Linux\u3067\u306f\u300c<strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u30b7\u30b9\u30c6\u30e0\u30af\u30ed\u30c3\u30af\uff08system clock\uff09<\/span><\/strong>\u300d\u3068\u300c<strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30af\u30ed\u30c3\u30af\uff08hardware clock\uff09<\/span><\/strong>\u300d\u306e2\u7a2e\u985e\u306e\u6642\u523b\u7ba1\u7406\u65b9\u5f0f\u304c\u5b58\u5728\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li><span style=\"color: #ff9900;\"><strong>\u30b7\u30b9\u30c6\u30e0\u30af\u30ed\u30c3\u30af\uff08system clock\uff09<\/strong><\/span><br \/>\n<span style=\"color: #000000;\">OS\u304c\u8d77\u52d5\u4e2d\u306b\u4f7f\u7528\u3055\u308c\u308b\u6642\u523b\u3067\u3001NTP\u3084Chrony\u306a\u3069\u306e\u6642\u523b\u540c\u671f\u30b5\u30fc\u30d3\u30b9\u306b\u3088\u3063\u3066\u8abf\u6574\u3055\u308c\u307e\u3059\u3002<\/span><\/li>\n<li><span style=\"color: #ff9900;\"><strong>\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30af\u30ed\u30c3\u30af\uff08hardware clock\uff09<\/strong><\/span><br \/>\n<span style=\"color: #000000;\">\u30de\u30b6\u30fc\u30dc\u30fc\u30c9\u4e0a\u306eRTC\uff08Real Time Clock\uff09\u306b\u3088\u308b\u5185\u90e8\u6642\u8a08\u3067\u3001\u96fb\u6e90\u30aa\u30d5\u6642\u3082\u4fdd\u6301\u3055\u308c\u307e\u3059\u3002<\/span><\/li>\n<\/ul>\n<p>Linux\u3067\u306f\u8d77\u52d5\u6642\u306b\u3053\u306e\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30af\u30ed\u30c3\u30af\u306e\u5024\u3092\u5143\u306b\u30b7\u30b9\u30c6\u30e0\u30af\u30ed\u30c3\u30af\u304c\u521d\u671f\u5316\u3055\u308c\u308b\u305f\u3081\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u4e21\u8005\u306e\u540c\u671f\u304c\u91cd\u8981<\/span>\u3067\u3059\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"ChronyNTPntpd\">Chrony\u3068NTP\uff08ntpd\uff09\u306e\u9055\u3044<\/span><\/h3>\n<p>\u8fd1\u5e74\u306eLinux\u74b0\u5883\u3067\u306f\u3001\u5f93\u6765\u5229\u7528\u3055\u308c\u3066\u3044\u305f\u30b5\u30fc\u30d3\u30b9\u306e\u300cntpd\u300d\u3088\u308a\u3082\u300cchronyd\u300d\u3092\u63a1\u7528\u3059\u308b\u30b1\u30fc\u30b9\u304c\u5897\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><span style=\"color: #ff9900;\"><strong>Chrony\u306e\u7279\u9577<\/strong><\/span><br \/>\n<span style=\"color: #000000;\">\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u304c\u4e0d\u5b89\u5b9a\u306a\u74b0\u5883\u3067\u3082\u9ad8\u7cbe\u5ea6\u306a\u6642\u523b\u540c\u671f\u304c\u53ef\u80fd<\/span><br \/>\n<span style=\"color: #000000;\">\u4eee\u60f3\u30de\u30b7\u30f3\uff08VM\uff09\u74b0\u5883\u3067\u3082\u5b89\u5b9a\u3057\u3066\u52d5\u4f5c\u3059\u308b<\/span><br \/>\n<span style=\"color: #000000;\">\u8efd\u91cf\u3067\u8d77\u52d5\u304c\u901f\u304f\u3001\u30ea\u30bd\u30fc\u30b9\u6d88\u8cbb\u304c\u5c11\u306a\u3044<\/span><\/li>\n<li><span style=\"color: #ff9900;\"><strong>ntpd\u306e\u7279\u9577<\/strong><\/span><br \/>\n<span style=\"color: #000000;\">\u6b74\u53f2\u304c\u9577\u304f\u3001\u5927\u898f\u6a21\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u306e\u5b89\u5b9a\u904b\u7528\u306b\u5b9a\u8a55\u304c\u3042\u308b<\/span><\/li>\n<\/ul>\n<p>\u3069\u3061\u3089\u3092\u9078\u3076\u304b\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u7528\u9014\u3084\u904b\u7528\u898f\u6a21\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8981\u4ef6\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u307e\u3059\u304c\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u6700\u65b0\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u306fChrony\u304c\u63a8\u5968\u3055\u308c\u308b\u50be\u5411<\/span>\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2 class=\"styled_h2\"><span id=\"NTP-3\">NTP\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u7bc9\u624b\u9806<\/span><\/h2>\n<p>\u4eca\u56de\u306f\u3001\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u306eVPS\u3092\u5229\u7528\u3057\u3001NTP\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u4eee\u60f3\u30de\u30b7\u30f3\u306e\u30b9\u30da\u30c3\u30af\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li><strong>CPU\uff1a4\u30b3\u30a2<\/strong><\/li>\n<li><strong>Memory\uff1a4GB<\/strong><\/li>\n<li><strong>Disk\uff1aSSD300GB<\/strong><\/li>\n<li><strong>CentOS\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff1aCentOS 7.9.2009<\/strong><br \/>\n<span style=\"color: #000000;\">\u203b\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u3067\u306fCentOS 7\u306a\u3069\u306eOS\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u72b6\u614b\u304b\u3089\u304a\u4f7f\u3044\u3044\u305f\u3060\u3051\u307e\u3059\u3002<\/span><\/li>\n<\/ul>\n<p>\u306a\u304a\u3001CentOS 7\u304b\u3089\u306f\u6642\u523b\u540c\u671f\u30b5\u30fc\u30d0\u30fc\/\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u3057\u3066chrony\u304c\u6a19\u6e96\u63a1\u7528\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u672c\u8a18\u4e8b\u3067\u306fchrony\u3092\u5229\u7528\u3057\u305fNTP\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u7bc9\u624b\u9806\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"chrony\">chrony\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30b5\u30fc\u30d3\u30b9\u5236\u5fa1<\/span><\/h3>\n<p>CentOS 7\u3067\u306fOS\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306bchrony\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u304c\u3001\u3082\u3057\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code>$ sudo yum install chrony<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u52d5\u4f5c\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u300cactive\uff08running\uff09\u300d\u3068\u8868\u793a\u3055\u308c\u308c\u3070\u3001\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code>$ sudo systemctl status chronyd<\/code><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-thumbnail wp-image-5014\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/\u753b\u50cf3-1-1-536x360.png\" alt=\"\" width=\"536\" height=\"360\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/\u753b\u50cf3-1-1-536x360.png 536w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/\u753b\u50cf3-1-1-300x201.png 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/\u753b\u50cf3-1-1.png 602w\" sizes=\"(max-width: 536px) 100vw, 536px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u306a\u304a\u3001chrony\u306e\u8d77\u52d5\u30fb\u505c\u6b62\u306e\u30b3\u30de\u30f3\u30c9\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<table style=\"width: 100%; border-collapse: collapse; background-color: #dff7da; height: 175px;\">\n<tbody>\n<tr style=\"height: 35px;\">\n<td style=\"width: 50%; height: 35px; background-color: #dff7da;\">chrony\u306e\u5236\u5fa1<\/td>\n<td style=\"width: 50%; height: 35px; background-color: #dff7da;\">\u30b3\u30de\u30f3\u30c9<\/td>\n<\/tr>\n<tr style=\"height: 35px;\">\n<td style=\"width: 50%; height: 35px;\">\u8d77\u52d5<\/td>\n<td style=\"width: 50%; height: 35px;\">\n<pre><code>$ sudo systemctl start chronyd<\/code><\/pre>\n<\/td>\n<\/tr>\n<tr style=\"height: 35px;\">\n<td style=\"width: 50%; height: 35px;\">\u505c\u6b62<\/td>\n<td style=\"width: 50%; height: 35px;\">\n<pre><code>$ sudo systemctl stop chronyd<\/code><\/pre>\n<\/td>\n<\/tr>\n<tr style=\"height: 35px;\">\n<td style=\"width: 50%; height: 35px;\">\u30b7\u30b9\u30c6\u30e0\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u8d77\u52d5\u6709\u52b9\u5316<\/td>\n<td style=\"width: 50%; height: 35px;\">\n<pre><code>$ sudo systemctl enable chronyd<\/code><\/pre>\n<\/td>\n<\/tr>\n<tr style=\"height: 35px;\">\n<td style=\"width: 50%; height: 35px;\">\u30b7\u30b9\u30c6\u30e0\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u8d77\u52d5\u7121\u52b9\u5316<\/td>\n<td style=\"width: 50%; height: 35px;\">\n<pre><code>$ sudo systemctl disable chronyd<\/code><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 class=\"styled_h3\"><span id=\"NTP-4\">\u5916\u90e8NTP\u30b5\u30fc\u30d0\u30fc\u306e\u6307\u5b9a\u65b9\u6cd5<\/span><\/h3>\n<p>\u4fe1\u983c\u6027\u306e\u9ad8\u3044\u6642\u523b\u540c\u671f\u3092\u884c\u3046\u306b\u306f\u3001\u5916\u90e8NTP\u30b5\u30fc\u30d0\u30fc\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<br \/>\n<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001`server`\u3084`pool`\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u3063\u3066\u300c<strong>ntp.nict.jp<\/strong>\u300d\u3084\u300c<strong>pool.ntp.org<\/strong>\u300d\u306a\u3069\u306e\u30b5\u30fc\u30d0\u30fc\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<br \/>\n<\/span>\u8907\u6570\u306e\u30b5\u30fc\u30d0\u30fc\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u5197\u9577\u6027\u3092\u78ba\u4fdd\u3057\u30011\u3064\u306e\u30b5\u30fc\u30d0\u30fc\u304c\u505c\u6b62\u3057\u3066\u3082\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u6642\u523b\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\nNTP\u306e\u7cbe\u5ea6\u3068\u5b89\u5b9a\u6027\u3092\u9ad8\u3081\u308b\u305f\u3081\u306e\u57fa\u672c\u8a2d\u5b9a\u3068\u3044\u3048\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"i-4\">\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u3068\u30dd\u30fc\u30c8\u958b\u653e<\/span><\/h3>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">NTP\u306f<strong>UDP<\/strong>\u306e<strong>123\u756a\u30dd\u30fc\u30c8<\/strong>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n<\/span>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u304c\u6b63\u3057\u304f\u884c\u308f\u308c\u3066\u3044\u306a\u3044\u3068\u3001\u901a\u4fe1\u304c\u906e\u65ad\u3055\u308c\u6642\u523b\u540c\u671f\u304c\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\nfirewalld\u3084iptables\u306a\u3069\u3067\u30dd\u30fc\u30c8\u3092\u5236\u9650\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001UDP 123\u30dd\u30fc\u30c8\u3092\u958b\u653e\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>firewalld\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067123\u30dd\u30fc\u30c8\u3092\u89e3\u653e\u3057\u307e\u3059\u3002<\/p>\n<pre><span style=\"font-size: 12px;\"><code>$ sudo firewall-cmd --permanent --add-service=ntp\r\n$ sudo firewall-cmd --reload<\/code><\/span><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-5015\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/\u753b\u50cf3-3-1.png\" alt=\"\" width=\"606\" height=\"97\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/\u753b\u50cf3-3-1.png 606w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/\u753b\u50cf3-3-1-300x48.png 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u6b63\u3057\u304f\u8a2d\u5b9a\u3067\u304d\u305f\u304b\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\n\u300cntp\u300d\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code>$ sudo firewall-cmd --list-all<\/code><\/pre>\n<p>\u7279\u306bNTP\u30b5\u30fc\u30d0\u30fc\u3092\u793e\u5185LAN\u306b\u516c\u958b\u3059\u308b\u5834\u5408\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u5916\u90e8\u30a2\u30af\u30bb\u30b9\u3092\u5236\u9650\u3057\u3064\u3064\u5fc5\u8981\u306a\u901a\u4fe1\u306e\u307f\u3092\u8a31\u53ef\u3059\u308b\u3053\u3068\u304c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u91cd\u8981<\/span>\u3067\u3059\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"LANNTP\">LAN\u5185\u3067NTP\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u6642\u523b\u914d\u4fe1\u3059\u308b\u8a2d\u5b9a<\/span><\/h3>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u81ea\u793e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5185\u306e\u8907\u6570\u30b5\u30fc\u30d0\u30fc\u3084\u7aef\u672b\u306b\u6642\u523b\u3092\u63d0\u4f9b\u3059\u308b\u306b\u306f\u3001LAN\u5185\u5411\u3051\u306bNTP\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3059\u308b\u306e\u304c\u52b9\u679c\u7684<\/span>\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u3067\u306f\u3001vi\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066 \/etc\/chrony.conf\u3092\u7de8\u96c6\u3057\u3001LAN\u5185\u3078\u306e\u914d\u4fe1\u3092\u8a31\u53ef\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-5016\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/\u753b\u50cf3-4-1.png\" alt=\"\" width=\"399\" height=\"76\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/\u753b\u50cf3-4-1.png 399w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/\u753b\u50cf3-4-1-300x57.png 300w\" sizes=\"(max-width: 399px) 100vw, 399px\" \/><\/p>\n<p>\u306a\u304a\u3001chrony.conf \u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001\u884c\u982d\u306b # \u304c\u4ed8\u3044\u3066\u3044\u308b\u884c\u306f\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u3066\u304a\u308a\u7121\u52b9\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u305d\u306e\u305f\u3081\u4e0a\u8a18\u306e\u4f8b\u3067\u306f \/16 \u306e\u8a2d\u5b9a\u306f\u7121\u52b9\u3067\u3001\u5b9f\u969b\u306b\u6709\u52b9\u306a\u306e\u306f \/24 \u306e\u8a2d\u5b9a\u3067\u3059\u3002<\/p>\n<p>\u8a2d\u5b9a\u5f8c\u306f\u30b5\u30fc\u30d3\u30b9\u306e\u518d\u8d77\u52d5\u3092\u5fd8\u308c\u305a\u306b\u5b9f\u65bd\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code>$ sudo systemctl restart chronyd\r\n$ chronyc sources<\/code><\/pre>\n<div class=\"well2\" style=\"text-align: center;\">\n<p style=\"text-align: center;\"><span style=\"color: #008000;\"><strong>CentOS<\/strong>\u3092<strong>VPS<\/strong>\u3067\u5229\u7528\u3059\u308b\u306a\u3089<\/span><strong style=\"font-size: 16px;\"><span style=\"color: #339966;\"><br \/>\n\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/span><\/strong><br \/>\n<strong>\uff3c 2\u9031\u9593\u7121\u6599\u3067\u304a\u8a66\u3057\u3067\u304d\u307e\u3059\uff01 \uff0f<\/strong><br \/>\n<a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-frame-btn&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\">VPS\u3092\u4f7f\u3063\u3066\u307f\u308b<\/a><\/p>\n<\/div>\n<h2 class=\"styled_h2\"><span id=\"NTP-5\">NTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8a2d\u5b9a\u3068\u6642\u523b\u540c\u671f\u306e\u78ba\u8a8d\u65b9\u6cd5<\/span><\/h2>\n<h3 class=\"styled_h3\"><span id=\"NTPchronyconf\">NTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\uff08`chrony.conf`\uff09<\/span><\/h3>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">Linux\u3092NTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u3057\u3066\u904b\u7528\u3059\u308b\u306b\u306f\u3001\/etc\/chrony.conf\u306b\u4e0a\u4f4d\u306eNTP\u30b5\u30fc\u30d0\u30fc\u60c5\u5831\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<br \/>\n<\/span><br \/>\n\u4ee5\u4e0b\u3067\u306f\u3001vi\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066 \/etc\/chrony.conf\u3092\u7de8\u96c6\u3057\u3001\u4f8b\u3068\u3057\u3066\u5916\u90e8\u306eNTP\u30b5\u30fc\u30d0\u30fc\u300cntp.nict.jp\u300d\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code>$ sudo vi \/etc\/chrony.conf<\/code><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-5017\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/\u753b\u50cf4-1-1.png\" alt=\"\" width=\"593\" height=\"137\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/\u753b\u50cf4-1-1.png 593w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/09\/\u753b\u50cf4-1-1-300x69.png 300w\" sizes=\"(max-width: 593px) 100vw, 593px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u8a2d\u5b9a\u5f8c\u306b\u30b5\u30fc\u30d3\u30b9\u306e\u518d\u8d77\u52d5\u3057\u3001\u540c\u671f\u304c\u3068\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre><code>$ sudo systemctl restart chronyd\r\n$ chronyc sources<\/code><\/pre>\n<h3 class=\"styled_h3\"><span id=\"ntpq_-p_chronyc_tracking\">\u540c\u671f\u72b6\u6cc1\u306e\u78ba\u8a8d\u30b3\u30de\u30f3\u30c9\uff08`ntpq -p`, `chronyc tracking`\u306a\u3069\uff09<\/span><\/h3>\n<p>\u6642\u523b\u306e\u540c\u671f\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u4f7f\u7528\u3057\u3066\u3044\u308bNTP\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306b\u5fdc\u3058\u305f\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u300c<strong>chronyc tracking<\/strong>\u300d\u3084\u300c<strong>chronyc sources<\/strong>\u300d\u304c\u6709\u52b9<\/span>\u3067\u3059\u3002<br \/>\n\u3053\u308c\u3089\u306e\u51fa\u529b\u3092\u8aad\u3080\u3053\u3068\u3067\u3001\u6642\u523b\u540c\u671f\u304c\u6b63\u3057\u304f\u884c\u308f\u308c\u3066\u3044\u308b\u304b\u3092\u5224\u65ad\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"ntpdate_chronyd_-q\">\u624b\u52d5\u3067\u306e\u6642\u523b\u66f4\u65b0\u30b3\u30de\u30f3\u30c9\uff08`ntpdate`, `chronyd -q`\u306a\u3069\uff09<\/span><\/h3>\n<p>\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6642\u3084\u521d\u671f\u8a2d\u5b9a\u6642\u3001NTP\u30b5\u30fc\u30d3\u30b9\u3092\u4f7f\u308f\u305a\u4e00\u6642\u7684\u306b\u624b\u52d5\u3067\u6642\u523b\u3092\u5408\u308f\u305b\u305f\u3044\u5834\u5408\u306f\u3001\u300c<strong><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">chronyd -q<\/span><\/strong>\u300d\u3092\u7528\u3044\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306b\u3088\u308a\u3001\u73fe\u5728\u306e\u6642\u523b\u3068NTP\u30b5\u30fc\u30d0\u30fc\u306e\u6642\u523b\u5dee\u3092\u3059\u3050\u306b\u4fee\u6b63\u3067\u304d\u307e\u3059\u3002<br \/>\n\u305f\u3060\u3057\u3001\u5e38\u6642\u306e\u6642\u523b\u7dad\u6301\u306b\u306f\u81ea\u52d5\u540c\u671f\u30b5\u30fc\u30d3\u30b9\u3092\u6709\u52b9\u5316\u3059\u308b\u306e\u304c\u57fa\u672c\u3067\u3059\u3002<br \/>\n<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u624b\u52d5\u3067\u306e\u66f4\u65b0\u306f\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6642\u3084\u521d\u671f\u8a2d\u5b9a\u6642\u306a\u3069\u306b\u9650\u5b9a\u3057\u3066\u6d3b\u7528\u3057\u307e\u3057\u3087\u3046\u3002<\/span><\/p>\n<div class=\"well2\" style=\"text-align: center;\">\n<p style=\"text-align: center;\"><span style=\"color: #008000;\"><strong>CentOS<\/strong>\u3092<strong>VPS<\/strong>\u3067\u5229\u7528\u3059\u308b\u306a\u3089<\/span><strong style=\"font-size: 16px;\"><span style=\"color: #339966;\"><br \/>\n\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/span><\/strong><br \/>\n<strong>\uff3c 2\u9031\u9593\u7121\u6599\u3067\u304a\u8a66\u3057\u3067\u304d\u307e\u3059\uff01 \uff0f<\/strong><br \/>\n<a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-frame-btn&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\">VPS\u3092\u4f7f\u3063\u3066\u307f\u308b<\/a><\/p>\n<\/div>\n<h2 class=\"styled_h2\"><span id=\"i-5\">\u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u3068\u5bfe\u51e6\u6cd5<\/span><\/h2>\n<h3 class=\"styled_h3\"><span id=\"i-6\">\u540c\u671f\u3067\u304d\u306a\u3044\u3068\u304d\u306e\u539f\u56e0\uff08\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30fb\u8a2d\u5b9a\u30df\u30b9\u306a\u3069\uff09<\/span><\/h3>\n<p>NTP\u306e\u540c\u671f\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u539f\u56e0\u306f\u591a\u5c90\u306b\u308f\u305f\u308a\u307e\u3059\u3002<br \/>\n\u4ee3\u8868\u7684\u306a\u30b1\u30fc\u30b9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li><span style=\"color: #ff9900;\"><strong>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u554f\u984c<\/strong><\/span>\uff1a<span style=\"color: #000000;\">NTP\u30b5\u30fc\u30d0\u30fc\u306b\u5230\u9054\u3067\u304d\u306a\u3044\u3001DNS\u89e3\u6c7a\u306b\u5931\u6557\u3057\u3066\u3044\u308b<\/span><\/li>\n<li><span style=\"color: #ff9900;\"><strong>\u8a2d\u5b9a\u30df\u30b9<\/strong><\/span>\uff1a<span style=\"color: #000000;\">\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\uff08\/etc\/chrony.conf\uff09\u306e\u8a18\u8ff0\u8aa4\u308a\u3001\u6307\u5b9a\u3057\u305fNTP\u30b5\u30fc\u30d0\u30fc\u304c\u5fdc\u7b54\u3057\u3066\u3044\u306a\u3044<\/span><\/li>\n<li><span style=\"color: #ff9900;\"><strong>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u5236\u5fa1<\/strong><\/span>\uff1a<span style=\"color: #000000;\">UDP 123\u756a\u30dd\u30fc\u30c8\u304c\u9589\u3058\u3089\u308c\u3066\u3044\u308b<\/span><\/li>\n<\/ul>\n<p>\u307e\u305a\u306f`ping`\u3084`ntpq -p`\u3001`chronyc sources`\u306a\u3069\u306e\u57fa\u672c\u7684\u306a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u78ba\u8a8d\u3092\u884c\u3044\u3001\u901a\u4fe1\u72b6\u6cc1\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"journalctl_varlog\">\u30ed\u30b0\u306e\u78ba\u8a8d\u65b9\u6cd5\u3068\u5bfe\u51e6\uff08`journalctl`, `\/var\/log\/`\uff09<\/span><\/h3>\n<p>NTP\u306e\u30c8\u30e9\u30d6\u30eb\u8abf\u67fb\u306b\u306f\u3001\u30ed\u30b0\u306e\u78ba\u8a8d\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002<br \/>\nsystemd\u3092\u63a1\u7528\u3057\u3066\u3044\u308b\u74b0\u5883\u3067\u306f\u3001\u300c<strong><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">journalctl -u ntp<\/span><\/strong>\u300d\u3084\u300c<strong><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">journalctl -u chronyd<\/span><\/strong>\u300d\u3067\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306e\u30ed\u30b0\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<br \/>\n\u5f93\u6765\u578b\u3067\u306f\u300c<strong><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\/var\/log\/messages<\/span><\/strong>\u300d\u3084\u300c<strong><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\/var\/log\/ntp.log<\/span><\/strong>\u300d\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<br \/>\n\u30ed\u30b0\u306b\u306f\u300c\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3067\u304d\u306a\u3044\u300d\u300c\u5fdc\u7b54\u304c\u306a\u3044\u300d\u306a\u3069\u306e\u30d2\u30f3\u30c8\u304c\u8a18\u9332\u3055\u308c\u3066\u304a\u308a\u3001\u30c8\u30e9\u30d6\u30eb\u306e\u539f\u56e0\u7279\u5b9a\u306b\u76f4\u7d50\u3057\u307e\u3059\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"i-7\">\u6642\u523b\u304c\u30ba\u30ec\u308b\u3068\u304d\u306e\u4fee\u6b63\u30dd\u30a4\u30f3\u30c8\u3068\u30b3\u30de\u30f3\u30c9<\/span><\/h3>\n<p>NTP\u3092\u5c0e\u5165\u3057\u3066\u3082\u6642\u523b\u304c\u5f90\u3005\u306b\u30ba\u30ec\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u8981\u56e0\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<ul>\n<li><span style=\"color: #ff9900;\"><strong>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8a2d\u5b9a\u30df\u30b9<\/strong><\/span><\/li>\n<li><span style=\"color: #ff9900;\"><strong>\u30b5\u30fc\u30d3\u30b9\u306e\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a\u6f0f\u308c<\/strong><\/span><\/li>\n<li><span style=\"color: #ff9900;\"><strong>\u4eee\u60f3\u74b0\u5883\uff08VM\uff09\u3067\u30db\u30b9\u30c8\u306e\u30af\u30ed\u30c3\u30af\u306b\u5f71\u97ff\u3092\u53d7\u3051\u3066\u3044\u308b<\/strong><\/span><\/li>\n<\/ul>\n<p>\u307e\u305a\u306f\u300cntpq -p\u300d\u3084\u300cchronyc tracking\u300d\u3067\u30aa\u30d5\u30bb\u30c3\u30c8\uff08\u6642\u523b\u5dee\uff09\u306e\u5927\u304d\u3055\u3092\u78ba\u8a8d\u3057\u3001\u624b\u52d5\u3067\u306e\u88dc\u6b63\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u300cntpdate\u300d\u3084\u300cchronyd -q\u300d\u3067\u4e00\u6642\u7684\u306b\u4fee\u6b63\u3057\u307e\u3059\u3002<br \/>\n\u305d\u306e\u5f8c\u3001\u7d99\u7d9a\u7684\u306a\u540c\u671f\u306e\u305f\u3081\u306b\u30b5\u30fc\u30d3\u30b9\u306e\u6709\u52b9\u5316\u3082\u5fc5\u305a\u884c\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2 class=\"styled_h2\"><span id=\"i-8\">\u307e\u3068\u3081<\/span><\/h2>\n<p>Linux\u74b0\u5883\u306b\u304a\u3051\u308bNTP\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u7bc9\u3068\u6642\u523b\u540c\u671f\u306e\u8a2d\u5b9a\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u6027\u3068\u4fe1\u983c\u6027\u3092\u652f\u3048\u308b\u91cd\u8981\u306a\u8981\u7d20\u3067\u3059\u3002<br \/>\n\u672c\u8a18\u4e8b\u3067\u306f\u3001NTP\u306e\u57fa\u672c\u304b\u3089\u59cb\u307e\u308a\u3001Chrony\u3068\u306e\u6bd4\u8f03\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u3084\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6\u65b9\u6cd5\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u3057\u3066\u306e\u904b\u7528\u3001\u305d\u3057\u3066\u30c8\u30e9\u30d6\u30eb\u3078\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u307e\u3067\u3001\u6bb5\u968e\u7684\u306b\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<br \/>\n<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u7279\u306b\u6642\u523b\u306e\u30ba\u30ec\u306f\u30ed\u30b0\u89e3\u6790\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7ba1\u7406\u306b\u5927\u304d\u306a\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u305f\u3081\u3001\u6b63\u3057\u3044\u77e5\u8b58\u306b\u57fa\u3065\u3044\u305f\u7d99\u7d9a\u7684\u306a\u904b\u7528\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<br \/>\n<\/span>\u672c\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3001\u3042\u306a\u305f\u81ea\u8eab\u306eLinux\u30b5\u30fc\u30d0\u30fc\u3067\u3082\u5b89\u5b9a\u3057\u305f\u6642\u523b\u540c\u671f\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3001\u904b\u7528\u30c8\u30e9\u30d6\u30eb\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ea\u30b9\u30af\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2 class=\"styled_h2\"><span id=\"CentOSVPS\">CentOS\u3092VPS\u3067\u5229\u7528\u3059\u308b\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/span><\/h2>\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><strong>\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/strong><\/a>\u306f\u3001\u30a2\u30b7\u30b9\u30c8\u30a2\u30c3\u30d7\u682a\u5f0f\u4f1a\u793e\u304c\u63d0\u4f9b\u3057\u3066\u3044\u308b\u3001<strong>Unix\u7cfb\u30b5\u30fc\u30d0\u30fc<\/strong>\u306b\u7279\u5316\u3057\u305f\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\"><a href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\"><strong>\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u306eVPS<\/strong><\/a>\u3067\u306f\u3001<strong>\u9ad8\u901f\u51e6\u7406\u304c\u53ef\u80fd\u306aSSD<\/strong>\u3092<strong>\u5168\u30d7\u30e9\u30f3\u306b\u642d\u8f09<\/strong>\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">OS\u306f\u3001<b>Ubuntu<\/b>\u3084<b>Debian<\/b>\u3001<b>AlmaLinux<\/b>\u306a\u3069\u306e\u8c4a\u5bcc\u306a\u30e9\u30a4\u30f3\u30a2\u30c3\u30d7\u304b\u3089\u9078\u629e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\"><strong>2\u9031\u9593\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb<\/strong><\/a>\u3092\u5b9f\u65bd\u3057\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u3001\u307e\u305a\u306f\u304a\u6c17\u8efd\u306b\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\">\u25bc\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u25bc<\/a><a href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-111 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"336\" height=\"280\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a.png 336w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a-300x250.png 300w\" sizes=\"(max-width: 336px) 100vw, 336px\" \/><\/a><\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u30d7\u30e9\u30f3\u306e\u9078\u629e\u3067\u304a\u56f0\u308a\u306e\u5834\u5408\u306f\u3001\u305c\u3072\u4e00\u5ea6\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<p style=\"text-align: center;\"><a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/formmail.php?utm_source=btn-vps&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener noreferrer\">\u304a\u554f\u3044\u5408\u308f\u305b\u306f\u3053\u3061\u3089<\/a><\/p>\n<div class=\"cardlink\">\r\n    <a class=\"image\" href=\"https:\/\/www.miraiserver.ne.jp\/column\/miraiserver_vps\/\">\r\n     <img src=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/08\/VPS\u306b\u7533\u8fbc\u307f\u3001SSH\u63a5\u7d9a\u3059\u308b\u307e\u3067\u306e\u6d41\u308c\u3010\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u3011-2.webp\">\r\n    <\/a>\r\n    <div class=\"content\">\r\n     <div class=\"title_area\">\r\n      <p class=\"date\">2023.08.03<\/p>\r\n      <h4 class=\"title\">\r\n       <a href=\"https:\/\/www.miraiserver.ne.jp\/column\/miraiserver_vps\/\">VPS\u306b\u7533\u8fbc\u307f\u3001SSH\u63a5\u7d9a\u3059\u308b\u307e\u3067\u306e\u6d41\u308c\u3010\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u3011<\/a>\r\n      <\/h4>\r\n     <\/div>\r\n     <p class=\"desc\"><span>\u30aa\u30f3\u30e9\u30a4\u30f3\u30d3\u30b8\u30cd\u30b9\u3084Web\u30b5\u30a4\u30c8\u306e\u904b\u55b6\u3092\u59cb\u3081\u308b\u969b\u306b\u306f\u3001\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u306e\u4e2d\u304b\u3089\u81ea\u5206\u306e\u7528\u9014\u306b\u5408\u3063\u305f\u30b5\u30fc\u30d0\u30fc\u74b0\u5883\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u4e00\u822c\u7684\u3067\u3059\u3002...<\/span><\/p>\r\n    <\/div>\r\n   <\/div>\n\n","protected":false},"excerpt":{"rendered":"&nbsp; \u30b7\u30b9\u30c6\u30e0\u904b\u7528\u306b\u304a\u3044\u3066\u300c\u6642\u523b\u306e\u6b63\u78ba\u6027\u300d\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3084\u4fe1\u983c\u6027\u306e\u57fa\u76e4\u3067\u3059\u3002 Linux\u30b5\u30fc\u30d0\u30fc\u3067\u3082\u30ed\u30b0\u306e\u6574\u5408\u6027\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5bfe\u7b56\u306e\u305f\u3081\u306b\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7d4c\u7531\u3067\u6b63\u78ba\u306a\u6642\u523b\u3092\u540c\u671f\u3059\u308bNTP\uff08Network Time Protocol\uff09\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002 \u672c\u8a18\u4e8b\u3067\u306f\u3001NTP\u306e\u4ed5\u7d44\u307f\u3084Chrony\u3068\u306e\u9055\u3044\u304b\u3089\u3001Linux\u3067\u306e\u8a2d\u5b9a\u65b9\u6cd5\u30fb\u78ba\u8a8d\u30b3\u30de\u30f3\u30c9\u30fb\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u307e\u3067\u3001\u521d\u5fc3\u8005\u306e\u65b9\u306b\u3082\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002 \uff3c 2\u9031\u9593\u7121\u6599\u3067\u304a\u8a66\u3057\u3067\u304d\u307e\u3059\uff01 \uff0f Unix\/Linux\u7cfbVPS\u3092\u3053\u306e\u4fa1\u683c\u3067\uff01 \u30fb\u5168\u30d7\u30e9\u30f3SSD\u642d\u8f09\u3067\u30b3\u30b9\u30c8\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u25ce \u30fb\u8c4a\u5bcc\u306aOS\u30e9\u30a4\u30f3\u30a2\u30c3\u30d7 \u30fb\u5145\u5b9f\u306e\u7121\u6599\u30b5\u30dd\u30fc\u30c8 VPS\u3092\u4f7f\u3063\u3066\u307f\u308b \u76ee\u6b211 NTP\u3068\u306f\uff1f\u6642\u523b\u540c\u671f\u306e\u4ed5\u7d44\u307f\u3068\u91cd\u8981\u60271.1 \u6982\u89811.2 \u306a\u305c\u6642\u523b\u306e\u540c\u671f\u304c\u5fc5\u8981\u306a\u306e\u304b1.3 NTP\u306e\u968e\u5c64\u69cb\u9020\u3068\u30b5\u30fc\u30d0\u30fc\u306e\u5f79\u52722 Linux\u306b\u304a\u3051\u308b\u6642\u523b\u7ba1\u7406\u306e\u4ed5\u7d44\u307f\u3068NTP\u306e\u5f79\u52722.1 \u30b7\u30b9\u30c6\u30e0\u30af\u30ed\u30c3\u30af\u3068\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30af\u30ed\u30c3\u30af\u306e\u9055\u30442.2 Chrony\u3068NTP\uff08ntpd\uff09\u306e\u9055\u30443 NTP\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u7bc9\u624b\u98063.1 chrony\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30b5\u30fc\u30d3\u30b9\u5236\u5fa13.2 \u5916\u90e8NTP\u30b5\u30fc\u30d0\u30fc\u306e\u6307\u5b9a\u65b9\u6cd53.3 \u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u3068\u30dd\u30fc\u30c8\u958b\u653e3.4 LAN\u5185\u3067NTP\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u6642\u523b\u914d\u4fe1\u3059\u308b\u8a2d\u5b9a4 NTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8a2d\u5b9a\u3068\u6642\u523b\u540c\u671f\u306e\u78ba\u8a8d\u65b9\u6cd54.1 NTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\uff08`chrony.conf`\uff094.2 \u540c\u671f\u72b6\u6cc1\u306e\u78ba\u8a8d\u30b3\u30de\u30f3\u30c9\uff08`ntpq -p`, `chronyc tracking`\u306a\u3069\uff094.3 \u624b\u52d5\u3067\u306e\u6642\u523b\u66f4\u65b0\u30b3\u30de\u30f3\u30c9\uff08`ntpdate`, `chronyd -q`\u306a\u3069\uff095 \u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u3068\u5bfe\u51e6\u6cd55.1 \u540c\u671f\u3067\u304d\u306a\u3044\u3068\u304d\u306e\u539f\u56e0\uff08\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30fb\u8a2d\u5b9a\u30df\u30b9\u306a\u3069\uff095.2 \u30ed\u30b0\u306e\u78ba\u8a8d\u65b9\u6cd5\u3068\u5bfe\u51e6\uff08`journalctl`, `\/var\/log\/`\uff095.3 \u6642\u523b\u304c\u30ba\u30ec\u308b\u3068\u304d\u306e\u4fee\u6b63\u30dd\u30a4\u30f3\u30c8\u3068\u30b3\u30de\u30f3\u30c96 \u307e\u3068\u30817 CentOS\u3092VPS\u3067\u5229\u7528\u3059\u308b\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc NTP\u3068\u306f\uff1f\u6642\u523b\u540c\u671f\u306e\u4ed5\u7d44\u307f\u3068\u91cd\u8981\u6027 \u6982\u8981 NTP\uff08Network Time Protocol\uff09\u3068\u306f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7d4c\u7531\u3067\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u3084\u30b5\u30fc\u30d0\u30fc\u306e\u6642\u523b\u3092\u6b63\u78ba\u306b\u540c\u671f\u3055\u305b\u308b\u305f\u3081\u306e\u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u3059\u3002 NTP\u306f\u975e\u5e38\u306b\u53e4\u304f\u304b\u3089\u4f7f\u308f\u308c\u3066\u304a\u308a\u3001\u8aa4\u5dee\u3092\u30df\u30ea\u79d2\u5358\u4f4d\u3067\u6291\u3048\u3089\u308c\u308b\u9ad8\u7cbe\u5ea6\u304c\u7279\u9577\u3067\u3059\u3002 \u6642\u523b\u30ba\u30ec\u306f\u904b\u7528\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u91cd\u5927\u306a\u5f71\u97ff\u3092\u53ca\u307c\u3059\u305f\u3081\u3001\u30b5\u30fc\u30d0\u30fc\u904b\u7528\u3067\u306fNTP\u306e\u5c0e\u5165\u304c\u5fc5\u9808\u3067\u3059\u3002 \u306a\u305c\u6642\u523b\u306e\u540c\u671f\u304c\u5fc5\u8981\u306a\u306e\u304b \u6642\u523b\u540c\u671f\u304c\u305a\u308c\u3066\u3044\u308b\u3068\u3001\u30b7\u30b9\u30c6\u30e0\u306b\u6df1\u523b\u306a\u554f\u984c\u3092\u5f15\u304d\u8d77\u3053\u3057\u307e\u3059\u3002 \u4f8b\u3048\u3070\u3001\u30ed\u30b0\u306e\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u304c\u5b9f\u969b\u306e\u767a\u751f\u6642\u523b\u3068\u7570\u306a\u308a\u3001\u969c\u5bb3\u5bfe\u5fdc\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5206\u6790\u306b\u652f\u969c\u3092\u304d\u305f\u3057\u307e\u3059\u3002 \u307e\u305f\u3001SSL\/TLS\u8a3c\u660e\u66f8\u306e\u6709\u52b9\u671f\u9650\u7ba1\u7406\u3084\u3001\u5404\u7a2e\u8a8d\u8a3c\u30d7\u30ed\u30c8\u30b3\u30eb\u306b\u3082\u6b63\u78ba\u306a\u6642\u523b\u304c\u5fc5\u8981\u3067\u3059\u3002 \u7279\u306b\u8907\u6570\u53f0\u306e\u30b5\u30fc\u30d0\u30fc\u3092\u9023\u643a\u3057\u3066\u904b\u7528\u3059\u308b\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u3059\u3079\u3066\u306e\u30b5\u30fc\u30d0\u30fc\u304c\u540c\u3058\u6642\u9593\u3092\u5171\u6709\u3067\u304d\u306a\u3051\u308c\u3070\u3001\u30c7\u30fc\u30bf\u306e\u6574\u5408\u6027\u53ef\u7528\u6027\u3092\u7dad\u6301\u3067\u304d\u307e\u305b\u3093\u3002 [&hellip;]","protected":false},"author":1,"featured_media":5009,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[237],"tags":[22,250,453,454,455,456],"_links":{"self":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/5011"}],"collection":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/comments?post=5011"}],"version-history":[{"count":38,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/5011\/revisions"}],"predecessor-version":[{"id":5024,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/5011\/revisions\/5024"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/media\/5009"}],"wp:attachment":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/media?parent=5011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/categories?post=5011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/tags?post=5011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}