{"id":2505,"date":"2015-04-24T23:53:01","date_gmt":"2015-04-24T14:53:01","guid":{"rendered":"https:\/\/160.16.84.155\/wordpress\/?p=2505"},"modified":"2015-04-24T23:53:01","modified_gmt":"2015-04-24T14:53:01","slug":"%e3%81%bb%e3%81%bc%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%bf%e3%82%a4%e3%83%a0%e3%81%ab%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%90%8c%e6%9c%9f","status":"publish","type":"post","link":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/2015\/04\/%e3%81%bb%e3%81%bc%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%bf%e3%82%a4%e3%83%a0%e3%81%ab%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%90%8c%e6%9c%9f.html","title":{"rendered":"\u307b\u307c\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u30d5\u30a1\u30a4\u30eb\u540c\u671f"},"content":{"rendered":"<p>2\u3064\u306e\u30b5\u30fc\u30d0\u30fc\u9593\u3067\u3001\u3067\u304d\u308b\u3060\u3051<strong>\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0<\/strong>\u3067\u30d5\u30a1\u30a4\u30eb\u3092<strong>\u540c\u671f<\/strong>\u3059\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u305d\u308c\u306e\u8a2d\u5b9a\u3092\u5099\u5fd8\u9332\u3092\u517c\u306d\u3066\u2026\u3002<\/p>\n<p>\u307e\u305a<strong>\u53d7\u4fe1\u5074<\/strong>\u306e\u8a2d\u5b9a\u3002<br \/>\n<strong>rsyncd<\/strong>\u3068\u3044\u3046\u30c7\u30fc\u30e2\u30f3\u3092\u52d5\u304b\u3057\u307e\u3059\u3002<br \/>\nxinetd\u7d4c\u7531\u3067\u547c\u3073\u51fa\u3055\u308c\u308b\u306e\u3067\u3001\u307e\u305a\u306f\u3053\u308c\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u6700\u4f4e\u6761\u4ef6\u3067\u3059\u3002<br \/>\nyum\u3067\u666e\u901a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u306a\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>rsyncd\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u8d77\u52d5\u3057\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\n\/etc\/xinetd.d\/rsync\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default mark:3,4 decode:true\" title=\"\/etc\/xinetd.d\/rsync\">service rsync\r\n{\r\n        disable         = no\r\n        flags           = IPv4\r\n        socket_type     = stream\r\n        wait            = no\r\n        user            = root\r\n        server          = \/usr\/bin\/rsync\r\n        server_args     = --daemon\r\n        log_on_failure += USERID\r\n}\r\n<\/pre>\n<p>disabled\u3092yes\u304b\u3089no\u306b\u3059\u308b\u3068\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001IPv4\u3092\u4f7f\u3046\u5834\u5408\u306fflags\u3092\u5909\u3048\u307e\u3059\u3002<br \/>\n\u5909\u66f4\u5f8c\u3001xinetd\u3092restart\u3059\u308c\u3070\u30dd\u30fc\u30c8873\u3067\u5f85\u3061\u53d7\u3051\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u540c\u671f\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u8a2d\u5b9a\u3067\u3059\u3002<br \/>\n\/etc\/rsyncd.conf\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default mark:2 decode:true\" title=\"\/etc\/rsyncd.conf\">[Publicdir]\r\n        path = \/var\/www\/html\/public\r\n        comment = public directory\r\n        hosts allow = hogehoge.com\r\n        hosts deny = *\r\n        read only = no\r\n        uid = user\r\n        gid = user\r\n<\/pre>\n<p>path\u304c\u540c\u671f\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3002<br \/>\nhosts allow\u306f\u63a5\u7d9a\u3092\u53d7\u3051\u4ed8\u3051\u308b\u30db\u30b9\u30c8\u540d\u3002<br \/>\nuid\u3068gid\u306f\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u66f8\u304d\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u306eid\u3068\u305d\u306e\u30b0\u30eb\u30fc\u30d7\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f<strong>\u9001\u4fe1\u5074<\/strong>\u306e\u8a2d\u5b9a\u3002<br \/>\n<strong>lsyncd<\/strong>\u3068\u3044\u3046\u30c7\u30fc\u30e2\u30f3\u3092\u52d5\u304b\u3057\u307e\u3059\u3002<br \/>\nrpmforge\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3053\u308c\u3082yum\u3067\u666e\u901a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u3067\u3059\u3002<br \/>\n(\u8a2d\u5b9a\u306b\u3088\u3063\u3066\u306f&#8211;enablerepo=rpmforge\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u5fc5\u8981\u3067\u3059)<\/p>\n<p>\u8a2d\u5b9a\u306f\/etc\/lsyncd.conf\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default mark:8,9 decode:true\" title=\"\/etc\/lsyncd.conf\">settings {\r\n  logfile = \"\/var\/log\/lsyncd.log\",\r\n  statusFile = \"\/var\/log\/lsyncd.stat\",\r\n}\r\n \r\nsync{\r\n  default.rsync,\r\n  source=\"\/usr\/local\/public\/\",\r\n  target=\"senduser@hoge2.com::Publicdir\",\r\n}<\/pre>\n<p>settings\u306e\u90e8\u5206\u306f\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3068\u304b\u306e\u8a2d\u5b9a\u3002<br \/>\nsync\u306e\u90e8\u5206\u304c\u540c\u671f\u306b\u95a2\u3059\u308b\u8a2d\u5b9a\u3002<br \/>\nsource\u306b\u306f\u53d7\u4fe1\u5074\u3068\u540c\u671f\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\ntarget\u306b\u306f\u53d7\u4fe1\u5074\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u3068\u30db\u30b9\u30c8\u540d\u3001\u53d7\u4fe1\u5074\u306e\u540c\u671f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u300cPublicdir\u300d\u306e\u90e8\u5206\u306b\u3001\u53d7\u4fe1\u5074\u306ersyncd.conf\u306e[]\u3067\u56f2\u3093\u3060\u90e8\u5206\u306e\u540d\u79f0\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u3089lsyncd\u3092service\u30b3\u30de\u30f3\u30c9\u3084\/etc\/init.d\u306e\u4e2d\u306e\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u8d77\u52d5\u3055\u305b\u307e\u3059\u3002<\/p>\n<p>\u9001\u4fe1\u5074\u306e\u5bfe\u8c61\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u5909\u66f4\u304c\u767a\u751f\u3059\u308b\u3068\u3001\u307b\u307c\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u53d7\u4fe1\u5074\u306brsync\u3067\u30d5\u30a1\u30a4\u30eb\u304c\u8ee2\u9001\u3055\u308c\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2\u3064\u306e\u30b5\u30fc\u30d0\u30fc\u9593\u3067\u3001\u3067\u304d\u308b\u3060\u3051\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u540c\u671f\u3059\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u305d\u308c\u306e\u8a2d\u5b9a\u3092\u5099\u5fd8\u9332\u3092\u517c\u306d\u3066\u2026\u3002 \u307e\u305a\u53d7\u4fe1\u5074\u306e\u8a2d\u5b9a\u3002 rsyncd\u3068\u3044\u3046\u30c7\u30fc\u30e2\u30f3\u3092\u52d5\u304b\u3057\u307e\u3059\u3002 xinetd\u7d4c\u7531\u3067\u547c\u3073\u51fa\u3055 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-2505","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/wp-json\/wp\/v2\/posts\/2505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/wp-json\/wp\/v2\/comments?post=2505"}],"version-history":[{"count":3,"href":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/wp-json\/wp\/v2\/posts\/2505\/revisions"}],"predecessor-version":[{"id":2508,"href":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/wp-json\/wp\/v2\/posts\/2505\/revisions\/2508"}],"wp:attachment":[{"href":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/wp-json\/wp\/v2\/media?parent=2505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/wp-json\/wp\/v2\/categories?post=2505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ephemeral-arcadia.jp\/passo_wp\/wp-json\/wp\/v2\/tags?post=2505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}