{"id":38870,"date":"2020-02-21T03:15:56","date_gmt":"2020-02-20T19:15:56","guid":{"rendered":"http:\/\/4563.org\/?p=38870"},"modified":"2020-02-21T03:15:56","modified_gmt":"2020-02-20T19:15:56","slug":"%e4%b8%8d%e6%87%82%e5%b0%b1%e9%97%ae%ef%bc%8c%e8%af%b7%e5%a4%a7%e4%bd%ac%e6%8c%87%e7%82%b9","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=38870","title":{"rendered":"\u4e0d\u61c2\u5c31\u95ee\uff0c\u8bf7\u5927\u4f6c\u6307\u70b9"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>404-not-found<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 12:37:23\t<\/p>\n<h3>\u4e0d\u61c2\u5c31\u95ee\uff0c\u8bf7\u5927\u4f6c\u6307\u70b9<\/h3>\n<p>  \t\t\u7cfb\u7edf\u73af\u5883Debian10\uff0c\u67d0\u5987\u62a2\u7a0b\u5e8f\u9700\u8981\u65f6\u95f4\u7cbe\u51c6\uff0c\u6240\u4ee5\u7528\u4e86ntp\uff0c\u4f46\u662fntp\u670d\u52a1\u65e0\u6cd5\u542f\u52a8\u3002<\/p>\n<p>  \u5982\u4e0b<\/p>\n<p>  root@PH:~# apt-get install ntp<br \/>  \u6b63\u5728\u8bfb\u53d6\u8f6f\u4ef6\u5305\u5217\u8868&#8230; \u5b8c\u6210<br \/>  \u6b63\u5728\u5206\u6790\u8f6f\u4ef6\u5305\u7684\u4f9d\u8d56\u5173\u7cfb\u6811&nbsp; &nbsp;&nbsp; &nbsp; <br \/>  \u6b63\u5728\u8bfb\u53d6\u72b6\u6001\u4fe1\u606f&#8230; \u5b8c\u6210&nbsp; &nbsp;&nbsp; &nbsp; <br \/>  \u5efa\u8bae\u5b89\u88c5\uff1a<br \/>  ntp-doc<br \/>  \u4e0b\u5217\u3010\u65b0\u3011\u8f6f\u4ef6\u5305\u5c06\u88ab\u5b89\u88c5\uff1a<br \/>  ntp<br \/>  \u5347\u7ea7\u4e86 0 \u4e2a\u8f6f\u4ef6\u5305\uff0c\u65b0\u5b89\u88c5\u4e86 1 \u4e2a\u8f6f\u4ef6\u5305\uff0c\u8981\u5378\u8f7d 0 \u4e2a\u8f6f\u4ef6\u5305\uff0c\u6709 0 \u4e2a\u8f6f\u4ef6\u5305\u672a\u88ab\u5347\u7ea7\u3002<br \/>  \u9700\u8981\u4e0b\u8f7d 761 kB \u7684\u5f52\u6863\u3002<br \/>  \u89e3\u538b\u7f29\u540e\u4f1a\u6d88\u8017 2,062 kB \u7684\u989d\u5916\u7a7a\u95f4\u3002<br \/>  \u83b7\u53d6:1 http:\/\/ftp.ca.debian.org\/debian buster\/main amd64 ntp amd64 1:4.2.8p12+dfsg-4 <br \/>  \u5df2\u4e0b\u8f7d 761 kB\uff0c\u8017\u65f6 1\u79d2 (1,336 kB\/s)<br \/>  \u6b63\u5728\u9009\u4e2d\u672a\u9009\u62e9\u7684\u8f6f\u4ef6\u5305 ntp\u3002<br \/>  (\u6b63\u5728\u8bfb\u53d6\u6570\u636e\u5e93 &#8230; \u7cfb\u7edf\u5f53\u524d\u5171\u5b89\u88c5\u6709 24680 \u4e2a\u6587\u4ef6\u548c\u76ee\u5f55\u3002)<br \/>  \u51c6\u5907\u89e3\u538b &#8230;\/ntp_1%3a4.2.8p12+dfsg-4_amd64.deb&#8230;<br \/>  \u6b63\u5728\u89e3\u538b ntp (1:4.2.8p12+dfsg-4) &#8230;<br \/>  \u6b63\u5728\u8bbe\u7f6e ntp (1:4.2.8p12+dfsg-4) &#8230;<br \/>  Created symlink \/etc\/systemd\/system\/multi-user.target.wants\/ntp.service \u2192 \/lib\/systemd\/system\/ntp.service.<br \/>  Job for ntp.service failed because of unavailable resources or another system error.<br \/>  See &quot;systemctl status ntp.service&quot; and &quot;journalctl -xe&quot; for details.<br \/>  invoke-rc.d: initscript ntp, action &quot;start&quot; failed.<br \/>  \u25cf ntp.service &#8211; Network Time Service<br \/>  &nbsp; &nbsp;Loaded: loaded (\/lib\/systemd\/system\/ntp.service; enabled; vendor preset: enabled)<br \/>  &nbsp; &nbsp;Active: failed (Result: resources)<br \/>  &nbsp; &nbsp;Docs: man:ntpd(8)<\/p>\n<p>  12\u6708 07 01:43:41 PH.Paleur systemd: ntp.service: Failed to run &#8216;start&#8217; task: No such file or directory<br \/>  12\u6708 07 01:43:41 PH.Paleur systemd: ntp.service: Failed with result &#8216;resources&#8217;.<br \/>  12\u6708 07 01:43:41 PH.Paleur systemd: Failed to start Network Time Service.<br \/>  12\u6708 07 01:56:32 PH.Paleur systemd: ntp.service: Failed to run &#8216;start&#8217; task: No such file or directory<br \/>  12\u6708 07 01:56:32 PH.Paleur systemd: ntp.service: Failed with result &#8216;resources&#8217;.<br \/>  12\u6708 07 01:56:32 PH.Paleur systemd: Failed to start Network Time Service.<br \/>  12\u6708 07 12:29:53 PH.Paleur systemd: ntp.service: Failed to run &#8216;start&#8217; task: No such file or directory<br \/>  12\u6708 07 12:29:53 PH.Paleur systemd: ntp.service: Failed with result &#8216;resources&#8217;.<br \/>  12\u6708 07 12:29:53 PH.Paleur systemd: Failed to start Network Time Service.<br \/>  dpkg: \u5904\u7406\u8f6f\u4ef6\u5305 ntp (&#8211;configure)\u65f6\u51fa\u9519\uff1a<br \/>   \u5df2\u5b89\u88c5 ntp \u8f6f\u4ef6\u5305 post-installation \u811a\u672c \u5b50\u8fdb\u7a0b\u8fd4\u56de\u9519\u8bef\u72b6\u6001 1<br \/>  \u6b63\u5728\u5904\u7406\u7528\u4e8e systemd (241-7~deb10u2) \u7684\u89e6\u53d1\u5668 &#8230;<br \/>  \u5728\u5904\u7406\u65f6\u6709\u9519\u8bef\u53d1\u751f\uff1a<br \/>   ntp<br \/>  E: Sub-process \/usr\/bin\/dpkg returned an error code (1)<\/p>\n<p>  \u83dc\u9e21\u4e00\u4e2a\uff0c\u4e0d\u77e5\u9053\u600e\u4e48\u5904\u7406\uff0c\u6c42\u5927\u4f6c\u6307\u70b9\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hehe<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 12:49:01\t<\/p>\n<h3><\/h3>\n<p>  \t\tDebian 10 \u4e3a\u4ec0\u4e48\u8fd8\u7528 ntp \uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>404-not-found<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 12:55:31\t<\/p>\n<h3><\/h3>\n<p>  \t\thehe \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 12:49<br \/>  Debian 10 \u4e3a\u4ec0\u4e48\u8fd8\u7528 ntp \uff1f<\/p>\n<p> \u76f4\u63a5\u4eceDebian8\u5347\u7ea7\u4e0a\u6765\u7684\uff0c\u8bf7\u95ee\u8fd8\u80fd\u4f7f\u7528\u4ec0\u4e48\u7f51\u7edc\u540c\u6b65\u65f6\u95f4\u7684\u8f6f\u4ef6\u5417\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hehe<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 13:02:41\t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 hehe \u4e8e 2019-12-7 13:05 \u7f16\u8f91 <\/p>\n<p> 404-not-found \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 12:55<br \/>  \u76f4\u63a5\u4eceDebian8\u5347\u7ea7\u4e0a\u6765\u7684\uff0c\u8bf7\u95ee\u8fd8\u80fd\u4f7f\u7528\u4ec0\u4e48\u7f51\u7edc\u540c\u6b65\u65f6\u95f4\u7684\u8f6f\u4ef6\u5417\uff1f<\/p>\n<p>  CentOS\u5b98\u65b9\u5acc ntp \u5728\u8001\u65e7\u786c\u4ef6\u8bbe\u5907\u548c\u7f51\u7edc\u4e0d\u7a33\u5b9a\u7684\u73af\u5883\u90fd\u4f1a\u51fa\u73b0\u65f6\u95f4\u4e0d\u51c6\u7684\u95ee\u9898\uff0c\u4ece CentOS 7 \u5f00\u59cb\u7cfb\u7edf\u5185\u7f6e\u4e86\u4e00\u4e2a\u66f4\u5148\u8fdb\u66f4\u667a\u80fd\u66f4\u51c6\u786e\u7684\u6821\u65f6\u7a0b\u5e8f\uff1b<br \/>  Debian\u5b98\u65b9\u5acc ntp \u592a\u81c3\u80bf\uff0c\u7cfb\u7edf\u5185\u7f6e\u4e86\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u6821\u65f6\u670d\u52a1\u3002<\/p>\n<p>  \u4e5f\u5c31\u662f\u8bf4\uff0c\u5378\u8f7d\u6389 ntp\uff0c\u65f6\u95f4\u4f1a\u53d8\u7684\u6bd4\u4f60\u5b89\u88c5 ntp \u66f4\u51c6\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>404-not-found<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 13:10:31\t<\/p>\n<h3><\/h3>\n<p>  \t\thehe \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 13:02<br \/>  CentOS\u5b98\u65b9\u5acc ntp \u5728\u8001\u65e7\u786c\u4ef6\u8bbe\u5907\u548c\u7f51\u7edc\u4e0d\u7a33\u5b9a\u7684\u73af\u5883\u90fd\u4f1a\u51fa\u73b0\u65f6\u95f4\u4e0d\u51c6\u7684\u95ee\u9898\uff0c\u4ece CentOS 7 \u5f00\u59cb\u7cfb\u7edf\u5185\u7f6e &#8230;<\/p>\n<p> \u4e4b\u524dDebian8\u6211\u4fee\u6539\u597d\u65f6\u533a\u548c\u65f6\u95f4\u540e\uff0c\u8fc7\u51e0\u5929\u5c31\u53d1\u73b0\u65f6\u95f4\u4e0d\u5bf9\u4e86\u3002<br \/>  \u6240\u4ee5\u7528\u4e86ntp\u3002<br \/>  \u8bf7\u95ee\u5927\u4f6c\u8bf4\u7684\u8fd9\u4e2a\u5185\u7f6e\u7684\u6821\u65f6\u670d\u52a1\u540d\u79f0\u662f\uff1f\u6211\u67e5\u4e00\u4e0b\u600e\u4e48\u4f7f\u7528<br \/>  \u7f51\u4e0a\u80fd\u627e\u5230\u7684\u6821\u65f6\u670d\u52a1\u90fd\u662fntp\u7684\u6559\u7a0b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hehe<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 13:15:11\t<\/p>\n<h3><\/h3>\n<p>  \t\t404-not-found \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 13:10<br \/>  \u4e4b\u524dDebian8\u6211\u4fee\u6539\u597d\u65f6\u533a\u548c\u65f6\u95f4\u540e\uff0c\u8fc7\u51e0\u5929\u5c31\u53d1\u73b0\u65f6\u95f4\u4e0d\u5bf9\u4e86\u3002<br \/>  \u6240\u4ee5\u7528\u4e86ntp\u3002<br \/>  \u8bf7\u95ee\u5927\u4f6c\u8bf4\u7684\u8fd9\u4e2a\u5185\u7f6e\u7684\u6821\u65f6 &#8230;<\/p>\n<p> \u4e0d\u7528\u8bbe\u7f6e\uff0c\u9ed8\u8ba4\u5c31\u662f\u5f00\u673a\u81ea\u52a8\u542f\u52a8\u7684<br \/>  https:\/\/s2.ax1x.com\/2019\/12\/07\/Qttet1.png\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>404-not-found<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 13:24:21\t<\/p>\n<h3><\/h3>\n<p>  \t\thehe \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 13:15<br \/>  \u4e0d\u7528\u8bbe\u7f6e\uff0c\u9ed8\u8ba4\u5c31\u662f\u5f00\u673a\u81ea\u52a8\u542f\u52a8\u7684<\/p>\n<p> \u5927\u4f6c\uff0c\u60a8\u770b<\/p>\n<p>  root@PH:~# systemctl status systemd-timesyncd<br \/>  \u25cf systemd-timesyncd.service &#8211; Network Time Synchronization<br \/>  &nbsp; &nbsp;Loaded: loaded (\/lib\/systemd\/system\/systemd-timesyncd.service; enabled; vendor preset: enabled)<br \/>  Drop-In: \/lib\/systemd\/system\/systemd-timesyncd.service.d<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\u2514\u2500disable-with-time-daemon.conf<br \/>  &nbsp; &nbsp;Active: failed (Result: resources) since Sat 2019-12-07 13:18:49 CST; 4min 45s ago<br \/>  &nbsp; &nbsp;Docs: man:systemd-timesyncd.service(8)<\/p>\n<p>  12\u6708 07 13:18:49 PH.Paleur systemd: systemd-timesyncd.service: Service has no hold-off time (RestartSec=0), sched<br \/>  uling restart.<br \/>  12\u6708 07 13:18:49 PH.Paleur systemd: systemd-timesyncd.service: Scheduled restart job, restart counter is at 5.<br \/>  12\u6708 07 13:18:49 PH.Paleur systemd: Stopped Network Time Synchronization.<br \/>  12\u6708 07 13:18:49 PH.Paleur systemd: systemd-timesyncd.service: Start request repeated too<br \/>   quickly.<br \/>  12\u6708 07 13:18:49 PH.Paleur systemd: systemd-timesyncd.service: Failed with result &#8216;resour<br \/>  ces&#8217;.<br \/>  12\u6708 07 13:18:49 PH.Paleur systemd: Failed to start Network Time Synchronization.  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hehe<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 13:37:38\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7b2c\u4e00\u6b65\uff1a\u5378\u8f7d ntp<br \/>  \u7b2c\u4e8c\u6b65\uff1a\u6fc0\u6d3b systemd-timesyncd \u5f00\u673a\u81ea\u542f\u52a8<br \/>  \u7b2c\u4e09\u6b65\uff1a\u91cd\u542f\u670d\u52a1\u5668<br \/>  apt purge ntp<br \/>  systemctl enable systemd-timesyncd<br \/>  reboot\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hehe<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 13:38:40\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u53e6\u5916\uff0c\u4f60\u770b\u4e00\u4e0b systemd-timesyncd \u914d\u7f6e\u6587\u4ef6<br \/>  \/etc\/systemd\/timesyncd.conf\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>404-not-found<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 13:48:42\t<\/p>\n<h3><\/h3>\n<p>  \t\thehe \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 13:37<br \/>  \u7b2c\u4e00\u6b65\uff1a\u5378\u8f7d ntp<br \/>  \u7b2c\u4e8c\u6b65\uff1a\u6fc0\u6d3b systemd-timesyncd \u5f00\u673a\u81ea\u542f\u52a8<br \/>  \u7b2c\u4e09\u6b65\uff1a\u91cd\u542f\u670d\u52a1\u5668<\/p>\n<p> \u8fd8\u662f\u548c\u4e0a\u9762\u7684\u62a5\u9519\u4e00\u6837<\/p>\n<p>  root@PH:~# systemctl status systemd-timesyncd<br \/>  \u25cf systemd-timesyncd.service &#8211; Network Time Synchronization<br \/>  &nbsp; &nbsp;Loaded: loaded (\/lib\/systemd\/system\/systemd-timesyncd.service; enabled; vendor preset: enabled)<br \/>  Drop-In: \/lib\/systemd\/system\/systemd-timesyncd.service.d<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\u2514\u2500disable-with-time-daemon.conf<br \/>  &nbsp; &nbsp;Active: failed (Result: resources) since Sat 2019-12-07 13:39:16 CST; 7min ago<br \/>  &nbsp; &nbsp;Docs: man:systemd-timesyncd.service(8)<\/p>\n<p>  12\u6708 07 13:39:16 PH.Paleur systemd: systemd-timesyncd.service: Service has no hold-off time (RestartSec=0), sched<br \/>  uling restart.<br \/>  12\u6708 07 13:39:16 PH.Paleur systemd: systemd-timesyncd.service: Scheduled restart job, restart counter is at 5.<br \/>  12\u6708 07 13:39:16 PH.Paleur systemd: Stopped Network Time Synchronization.<br \/>  12\u6708 07 13:39:16 PH.Paleur systemd: systemd-timesyncd.service: Start request repeated too<br \/>   quickly.<br \/>  12\u6708 07 13:39:16 PH.Paleur systemd: systemd-timesyncd.service: Failed with result &#8216;resour<br \/>  ces&#8217;.<br \/>  12\u6708 07 13:39:16 PH.Paleur systemd: Failed to start Network Time Synchronization.  \t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>404-not-found \u5927\u4f6c\u6709&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/38870"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=38870"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/38870\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=38870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=38870"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=38870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}