{"id":49,"date":"2013-08-05T23:14:37","date_gmt":"2013-08-05T14:14:37","guid":{"rendered":"https:\/\/www.dogrow.net\/linux\/?p=49"},"modified":"2019-10-20T06:39:54","modified_gmt":"2019-10-19T21:39:54","slug":"blog14","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/linux\/blog14\/","title":{"rendered":"(14) subversion\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<h1 class=\"my_h\">1. \u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>\u81ea\u524d\u30b5\u30fc\u30d0\u30fc\u3067 <span class=\"my_fc_deeppinkBBig\">Subversion<\/span> \u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u3002<\/p>\n<h1 class=\"my_h\">2. \u3084\u3063\u3066\u307f\u308b<\/h1>\n<h2 class=\"my_h\">(1) Subversion\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p><span class=\"my_fs_big3 my_fw_bold\">CentOS7<\/span> \u3067\u5b9f\u65bd\u3057\u305f\u5834\u5408\u306e\u4f5c\u696d\u8a18\u9332\u3067\u3059\u3002<\/p>\n<p>Subversion\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\uff1f<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nyum list installed | grep svn\r\n<\/pre>\n<p>\u7121\u3051\u308c\u3070yum\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nyum install svn\r\nyum install mod_dav_svn\r\n<\/pre>\n<h2 class=\"my_h\">(2) \u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210<\/h2>\n<p>myrepos \u3068\u3044\u3046\u540d\u524d\u3067\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsvnadmin create \/var\/svn\/repos\/myrepos\r\n<\/pre>\n<p>\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u5909\u66f4\u3059\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nchown -R apache:apache \/var\/svn\/repos\/myrepos\r\nchmod -R u+rw \/var\/svn\/repos\/myrepos\r\nchcon -R -h -t httpd_sys_content_t \/var\/svn\/repos\r\n<\/pre>\n<h2 class=\"my_h\">(3) WEB\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306b\u3059\u308b\u3002<\/h2>\n<p>httpd\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nvi \/etc\/httpd\/conf.d\/subversion.conf\r\n<\/pre>\n<p>HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3067 \/\/xxxx.xxxxxx.xxx\/svn \u3068\u6307\u5b9a\u3055\u308c\u305f\u3089 \/var\/svn\/repos \u914d\u4e0b\u3092\u8fbf\u308b\u3088\u3046\u306b\u6307\u5b9a\u3059\u308b\u3002<\/p>\n<pre>\r\n&lt;Location \/svn&gt;\r\n\u00a0\u00a0 DAV svn\r\n\u00a0\u00a0 SVNParentPath \/var\/svn\/repos\r\n&lt;\/Location&gt;\r\n<\/pre>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u500b\u3005\u306b\u6307\u5b9a\u3057\u305f\u3044\u5834\u5408\u306f\u3053\u3093\u306a\u66f8\u304d\u65b9\u3067\u3082\u3088\u3044\u3002<\/p>\n<pre>\r\n&lt;Location \/svn\/AAA&gt;\r\n   DAV svn\r\n   SVNPath \/var\/svn\/repos\/AAA\r\n&lt;\/Location&gt;\r\n&lt;Location \/svn\/BBB&gt;\r\n   DAV svn\r\n   SVNPath \/var\/svn\/repos\/BBB\r\n&lt;\/Location&gt;\r\n<\/pre>\n<p>Apache\u3092\u518d\u8d77\u52d5\u3059\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsystemctl restart httpd.service\r\nsystemctl status httpd.service\r\n<\/pre>\n<p>WEB\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068&#8230;<br \/>\n\u51fa\u6765\u7acb\u3066\u306f\u3053\u3093\u306a\u611f\u3058\u3002\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u4f55\u3082\u5165\u308c\u3066\u3044\u306a\u3044\u306e\u3060\u304b\u3089\u7a7a\u3063\u307d\u3060\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2013\/08\/001.jpg\" alt=\"\" \/><\/p>\n<h1 class=\"my_h\">3. \u5fdc\u7528\u7de8<\/h1>\n<h2 class=\"my_h\">(1) \u30a2\u30af\u30bb\u30b9\u6642\u306b\u8a8d\u8a3c\u3092\u5fc5\u8981\u3068\u3059\u308b\u3002<\/h2>\n<p>\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmkdir -p \/etc\/subversion\/conf\r\nFPATH=\/etc\/subversion\/conf\/authuser.conf\r\nUSER=aoidake\r\nPASS=onsen\r\nhtpasswd -c -b $FPATH $USER $PASS\r\n<\/pre>\n<p>https\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nvi \/etc\/httpd\/conf.d\/subversion.conf\r\n<\/pre>\n<p>AuthName\u4ee5\u4e0b\u3092\u8ffd\u8a18\u3059\u308b\u3002<\/p>\n<pre>\r\n&lt;Location \/svn&gt;\r\n   DAV svn\r\n   SVNParentPath \/var\/svn\/repos\r\n\r\n  AuthName \"My SVN\"\r\n  AuthType Basic\r\n  AuthBasicProvider file\r\n  AuthUserFile \/etc\/subversion\/conf\/authuser.conf\r\n  Require valid-user\r\n&lt;\/Location&gt;\r\n<\/pre>\n<p>Apache\u3092\u518d\u8d77\u52d5\u3059\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsystemctl restart httpd.service\r\nsystemctl status httpd.service\r\n<\/pre>\n<p>\u8a8d\u8a3c\u304c\u5fc5\u8981\u306b\u306a\u3063\u305f\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/linux\/wp-content\/uploads\/2013\/08\/002.jpg\" alt=\"\" \/><\/p>\n<h2 class=\"my_h\">(2) \u30bb\u30ad\u30e5\u30a2\u63a5\u7d9a\u3092\u5f37\u5236\u3059\u308b\u3002<\/h2>\n<p><span class=\"my_fc_crimsonBBig\">\u5f8c\u3067\u8ffd\u8a18&#8230;<\/span><\/p>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>1. \u3084\u308a\u305f\u3044\u3053\u3068 \u81ea\u524d\u30b5\u30fc\u30d0\u30fc\u3067 Subversion \u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u3002 2. \u3084\u3063\u3066\u307f\u308b (1) Subversion\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb CentOS7 \u3067\u5b9f\u65bd\u3057\u305f\u5834\u5408\u306e\u4f5c\u696d\u8a18\u9332\u3067\u3059\u3002 Subversion\u306f\u30a4\u30f3\u30b9\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/linux\/blog14\/\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-49","post","type-post","status-publish","format-standard","hentry","category-subversion"],"views":4434,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/comments?post=49"}],"version-history":[{"count":24,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/49\/revisions"}],"predecessor-version":[{"id":2442,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/49\/revisions\/2442"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/media?parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/categories?post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/tags?post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}