﻿{"id":19,"date":"2013-03-18T21:16:28","date_gmt":"2013-03-18T17:16:28","guid":{"rendered":"http:\/\/fewit.ru\/?p=19"},"modified":"2018-05-03T12:22:59","modified_gmt":"2018-05-03T09:22:59","slug":"%d0%bd%d0%b0%d1%81%d1%82%d1%80%d0%be%d0%b9%d0%ba%d0%b0-ntpd-%d0%bd%d0%b0-vps-centos","status":"publish","type":"post","link":"https:\/\/fewit.ru\/?p=19","title":{"rendered":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 ntpd \u043d\u0430 Centos 6, Debian 8"},"content":{"rendered":"<p>\u0412\u044b\u0431\u043e\u0440 \u041c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u0447\u0430\u0441\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u044f\u0441\u0430 \u043d\u0430 CentOS 6:<\/p>\n<pre>ln -sf \/usr\/share\/zoneinfo\/Europe\/Moscow \/etc\/localtime<\/pre>\n<p>\u0412\u044b\u0431\u043e\u0440 \u041c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u0447\u0430\u0441\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u044f\u0441\u0430 \u043d\u0430 Debian:<\/p>\n<pre>dpkg-reconfigure tzdata<\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 ntp CentOS 6:<\/p>\n<pre>yum install ntp<\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 ntp Debian:<\/p>\n<pre>apt install ntp ntpdate<\/pre>\n<p>\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0432\u0440\u0435\u043c\u044f:<\/p>\n<pre>ntpdate ntp0.zenon.net \u0438\u043b\u0438 ntpdate 0.ru.pool.ntp.org<\/pre>\n<p>\u0421\u0442\u0430\u0432\u0438\u043c \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0432 CentOS 6:<\/p>\n<pre>chkconfig ntpd on<\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430:<\/p>\n<pre>chkconfig --list ntpd<\/pre>\n<p><!--more--><br \/>\n\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438:<br \/>\n\u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u0441\u0430\u043c ntp. \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c:<\/p>\n<pre>service ntpd start<\/pre>\n<p>\u041e\u0448\u0438\u0431\u043a\u0430:<\/p>\n<pre>date: cannot set date: Operation not permitted<\/pre>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435:<br \/>\n\u041d\u0430 OpenVZ \u043c\u0430\u0448\u0438\u043d\u0435:<\/p>\n<p>\u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c VPS<\/p>\n<pre>vzctl stop 128<\/pre>\n<p>\u0412\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0443 \u043d\u0443\u0436\u043d\u043e\u0433\u043e VPS<\/p>\n<pre>vzctl set 128 --save --capability sys_time:on<\/pre>\n<p>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c VPS<\/p>\n<pre>vzctl start 128<\/pre>\n<p>\u0433\u0434\u0435 128 ID VPS<br \/>\n\u041f\u043e\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0439\u0442\u0438 \u043d\u0430 VPS \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442 \u0432\u0440\u0435\u043c\u044f.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u044b\u0431\u043e\u0440 \u041c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u0447\u0430\u0441\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u044f\u0441\u0430 \u043d\u0430 CentOS 6: ln -sf \/usr\/share\/zoneinfo\/Europe\/Moscow \/etc\/localtime \u0412\u044b\u0431\u043e\u0440 \u041c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u0447\u0430\u0441\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u044f\u0441\u0430 \u043d\u0430 Debian: dpkg-reconfigure tzdata \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,16,3],"tags":[43,45,44,46,42],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-centos","category-debian","category-linux","tag-centos-6","tag-ntp","tag-ntpd","tag-ntpdate","tag-openvz"],"_links":{"self":[{"href":"https:\/\/fewit.ru\/index.php?rest_route=\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fewit.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fewit.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fewit.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fewit.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19"}],"version-history":[{"count":6,"href":"https:\/\/fewit.ru\/index.php?rest_route=\/wp\/v2\/posts\/19\/revisions"}],"predecessor-version":[{"id":145,"href":"https:\/\/fewit.ru\/index.php?rest_route=\/wp\/v2\/posts\/19\/revisions\/145"}],"wp:attachment":[{"href":"https:\/\/fewit.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fewit.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fewit.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}