{"id":2138,"date":"2022-10-09T11:17:12","date_gmt":"2022-10-09T03:17:12","guid":{"rendered":"https:\/\/laihp.top\/zqb\/?p=2138"},"modified":"2022-10-09T11:17:41","modified_gmt":"2022-10-09T03:17:41","slug":"svn%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%90%ad%e5%bb%ba%e5%8f%8a%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.laihp.top\/zqb\/?p=2138","title":{"rendered":"SVN\u670d\u52a1\u5668\u642d\u5efa\u53ca\u914d\u7f6e"},"content":{"rendered":"<h2>SVN\u5b89\u88c5\u4e0e\u521b\u5efa\u5e93\uff1a<\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"> 1  sudo apt install subversion\r\n 2  sudo svnserve --version\r\n\r\n 6  sudo mkdir \/data\r\n 7  sudo mkdir \/data\/svn\r\n 8  sudo mkdir \/data\/svn\/repository\r\n\r\n10  sudo chmod -R 777 \/data\r\n\r\n12  cd \/data\/svn\/\r\n14  cd repository\/\r\n15  svnadmin create .\/\r\n17  sudo chmod -R 777 .\/db\/\r\n\r\n\r\n44  mkdir PhoenixUnity\r\n45  mkdir PhoenixUnityUI\r\n46  mkdir PhoenixUnityAB\r\n47  mkdir PhoenixUnityLibrary\r\n\r\n49  svnadmin create .\/PhoenixUnity\r\n51  svnadmin create .\/PhoenixUnityAB\/\r\n52  svnadmin create .\/PhoenixUnityUI\/\r\n53  svnadmin create .\/PhoenixUnityLibrary\/\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h2>svnserve.conf\u914d\u7f6e\u6587\u4ef6\uff1a<\/h2>\n<p>\u4fee\u6539<\/p>\n<p>anon-access = none<\/p>\n<p>auth-access = write<\/p>\n<p>password-db = \/data\/svn\/passwd\u00a0 \u00a0#\u6307\u5b9a\u7528\u6237\u5bc6\u7801\u6587\u4ef6<\/p>\n<p>authz-db = \/data\/svn\/authz\u00a0 \u00a0 #\u6307\u5b9a\u6743\u9650\u6587\u4ef6<\/p>\n<p>realm = PhoenixUnityAB<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">ubuntu@ubuntu:\/data\/svn$ cat PhoenixUnityAB\/conf\/svnserve.conf \r\n### This file controls the configuration of the svnserve daemon, if you\r\n### use it to allow access to this repository.  (If you only allow\r\n### access through http: and\/or file: URLs, then this file is\r\n### irrelevant.)\r\n\r\n### Visit http:\/\/subversion.apache.org\/ for more information.\r\n\r\n[general]\r\n### The anon-access and auth-access options control access to the\r\n### repository for unauthenticated (a.k.a. anonymous) users and\r\n### authenticated users, respectively.\r\n### Valid values are \"write\", \"read\", and \"none\".\r\n### Setting the value to \"none\" prohibits both reading and writing;\r\n### \"read\" allows read-only access, and \"write\" allows complete \r\n### read\/write access to the repository.\r\n### The sample settings below are the defaults and specify that anonymous\r\n### users have read-only access to the repository, while authenticated\r\n### users have read and write access to the repository.\r\nanon-access = none\r\n# anon-access = read\r\nauth-access = write\r\n### The password-db option controls the location of the password\r\n### database file.  Unless you specify a path starting with a \/,\r\n### the file's location is relative to the directory containing\r\n### this configuration file.\r\n### If SASL is enabled (see below), this file will NOT be used.\r\n### Uncomment the line below to use the default password file.\r\n# password-db = passwd\r\n### The authz-db option controls the location of the authorization\r\n### rules for path-based access control.  Unless you specify a path\r\n### starting with a \/, the file's location is relative to the\r\n### directory containing this file.  The specified path may be a\r\n### repository relative URL (^\/) or an absolute file:\/\/ URL to a text\r\n### file in a Subversion repository.  If you don't specify an authz-db,\r\n### no path-based access control is done.\r\n### Uncomment the line below to use the default authorization file.\r\n# authz-db = authz\r\n### The groups-db option controls the location of the file with the\r\n### group definitions and allows maintaining groups separately from the\r\n### authorization rules.  The groups-db file is of the same format as the\r\n### authz-db file and should contain a single [groups] section with the\r\n### group definitions.  If the option is enabled, the authz-db file cannot\r\n### contain a [groups] section.  Unless you specify a path starting with\r\n### a \/, the file's location is relative to the directory containing this\r\n### file.  The specified path may be a repository relative URL (^\/) or an\r\n### absolute file:\/\/ URL to a text file in a Subversion repository.\r\n### This option is not being used by default.\r\n# groups-db = groups\r\n### This option specifies the authentication realm of the repository.\r\n### If two repositories have the same authentication realm, they should\r\n### have the same password database, and vice versa.  The default realm\r\n### is repository's uuid.\r\n# realm = My First Repository\r\n### The force-username-case option causes svnserve to case-normalize\r\n### usernames before comparing them against the authorization rules in the\r\n### authz-db file configured above.  Valid values are \"upper\" (to upper-\r\n### case the usernames), \"lower\" (to lowercase the usernames), and\r\n### \"none\" (to compare usernames as-is without case conversion, which\r\n### is the default behavior).\r\n# force-username-case = none\r\n### The hooks-env options specifies a path to the hook script environment \r\n### configuration file. This option overrides the per-repository default\r\n### and can be used to configure the hook script environment for multiple \r\n### repositories in a single file, if an absolute path is specified.\r\n### Unless you specify an absolute path, the file's location is relative\r\n### to the directory containing this file.\r\n# hooks-env = hooks-env\r\npassword-db = \/data\/svn\/passwd\r\n\r\nauthz-db = \/data\/svn\/authz\r\n\r\nrealm = PhoenixUnityAB\r\n[sasl]\r\n### This option specifies whether you want to use the Cyrus SASL\r\n### library for authentication. Default is false.\r\n### This section will be ignored if svnserve is not built with Cyrus\r\n### SASL support; to check, run 'svnserve --version' and look for a line\r\n### reading 'Cyrus SASL authentication is available.'\r\n# use-sasl = true\r\n### These options specify the desired strength of the security layer\r\n### that you want SASL to provide. 0 means no encryption, 1 means\r\n### integrity-checking only, values larger than 1 are correlated\r\n### to the effective key length for encryption (e.g. 128 means 128-bit\r\n### encryption). The values below are the defaults.\r\n# min-encryption = 0\r\n# max-encryption = 256\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h1 id=\"articleContentId\" class=\"title-article\">TortoiseSVN\u4e0d\u80fd\u67e5\u770b\u65e5\u5fd7\u7684\u539f\u56e0\u4e4b\u4e00<\/h1>\n<p>\u6700\u8fd1\u65b0\u5efa\u7684svn\u9879\u76ee\uff0c\u63d0\u4ea4\u548c\u83b7\u53d6\u4e00\u5207\u90fdok,\u5c31\u662f\u4e0a\u4e0b\u6587\u83dc\u5355\u4e2d\u70b9\u51fbshow log\u83dc\u5355\u65f6\uff0c\u4e0d\u663e\u793a\u65e5\u5fd7\uff0c\u4e5f\u4e0d\u80fd\u9009\u67e5\u8be2\u65e5\u671f\u3002\u5927\u5bb6\u9047\u5230\u7684\u539f\u56e0\u90fd\u4e0d\u5c3d\u76f8\u540c\uff0c\u67e5\u4e86\u4e00\u4e0b\uff0c\u5927\u81f4\u6709\u5982\u4e0b\u51e0\u79cd\u539f\u56e0\uff1a<\/p>\n<p>1. \u914d\u7f6e\u6587\u4ef6\u95ee\u9898\uff0c\u539f\u56e0\u662f\uff0c anon-access \u672a\u8bbe\u7f6e\u6210none,\u56e0\u4e3a\u8bbe\u7f6e\u4e86\u5e10\u53f7\u548c\u6743\u9650\uff0c anon-access \u662f\u62d2\u7edd\u8bbf\u95ee\u7684\uff0c\u6240\u4ee5\u4e0d\u80fd\u8bbe\u7f6e\u6210\u8bfb\u6216\u8005\u5199\uff0c\u4e5f\u4e0d\u80fd\u4e0d\u8bbe\u7f6e\u3002\u6211\u7684\u539f\u56e0\uff0c\u5c31\u662f\u8fd9\u4e2a\u539f\u56e0,<\/p>\n<p>\u5bf9\u6bd4\u4e86\u9879\u76ee\u7684svnserve.conf\u6587\u4ef6\uff0c\u8fd9\u51e0\u4e2a\u5730\u65b9\u662f\u5173\u952e\u5730\u65b9\uff1a<\/p>\n<p><span style=\"color: #ff0000;\"><strong>anon-access = none<\/strong><\/span> #\u8fd9\u4e00\u9879\u5fc5\u987b\u8981\u6709\uff0c\u4e14\u5fc5\u987b\u4e3anone,\u4e0d\u80fd\u4e0d\u8bbe\u7f6e\u4e5f\u4e0d\u80fd\u8bbe\u7f6e\u6210read\u6216write<br \/>\nauth-access = write<\/p>\n<p>password-db = ..\/..\/passwd #\u6211\u7684\u5bc6\u7801\u6587\u4ef6<br \/>\nauthz-db = ..\/..\/authz #\u6211\u7684\u6743\u9650\u6587\u4ef6<\/p>\n<p>realm = project #\u9879\u76ee<\/p>\n<p>\u4fee\u6539\u4e4b\u540e\u91cd\u542fsvn\u670d\u52a1<\/p>\n<p>2. \u6709\u4eba\u8bf4\u6e05\u9664\u7f13\u5b58\uff0c\u8bf7\u9664\u65e5\u5fd7\uff0c\u4e5f\u6709\u4eba\u8bf4\u4e0a\u4e0b\u6587\u4ef6\u83dc\u5355\u4e2d\u9009\u62e9Revision graph,\u4f46\u662f\u6267\u884c\u8fd9\u4e00\u9879\u4f1a\u5361\u5728\u90a3\u91cc\u4e0d\u52a8\uff0c\u4f30\u8ba1\u8fd8\u662f\u4e0a\u9762\u7b2c1\u6761\u8bf4\u7684\u539f\u56e0\u3002<\/p>\n<p>3. \u4e5f\u6709\u4eba\u8bf4\u53ef\u80fd\u662fsvn\u5ba2\u6237\u7aef\u7248\u672c\u7684\u539f\u56e0\uff0c\u8fd9\u4e2a\u4e5f\u6709\u53ef\u80fd\u3002<\/p>\n<p>\u53ef\u80fd\u5404\u4f4d\u9047\u5230\u7684\u60c5\u51b5\u90fd\u4e0d\u592a\u4e00\u6837\uff0c\u53ef\u80fd\u8fd8\u6709\u522b\u7684\u539f\u56e0\u3002<\/p>\n<div class=\"article-title-box\">\n<h1 id=\"articleContentId\" class=\"title-article\">\u914d\u7f6esvn \u62a5\u9519E200002\u89e3\u51b3\u529e\u6cd5<\/h1>\n<\/div>\n<div class=\"article-info-box\">\n<p class=\"article-bar-top\">svnserve.conf \u6587\u4ef6\u914d\u7f6e\u9700\u8981\u9876\u683c\u5199 \u4e0d\u80fd\u6362\u884c\u6216\u8005\u7a7a\u683c\uff01<br \/>\n\u6539\u5b8c\u5c31\u5bf9\u4e86\uff01<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>SVN\u5b89\u88c5\u4e0e\u521b\u5efa\u5e93\uff1a 1 sudo apt install subversion 2 sudo svnserv &#8230; <a title=\"SVN\u670d\u52a1\u5668\u642d\u5efa\u53ca\u914d\u7f6e\" class=\"read-more\" href=\"https:\/\/www.laihp.top\/zqb\/?p=2138\" aria-label=\"\u7ee7\u7eed\u9605\u8bfbSVN\u670d\u52a1\u5668\u642d\u5efa\u53ca\u914d\u7f6e\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2138","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.laihp.top\/zqb\/index.php?rest_route=\/wp\/v2\/posts\/2138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laihp.top\/zqb\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laihp.top\/zqb\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laihp.top\/zqb\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laihp.top\/zqb\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2138"}],"version-history":[{"count":2,"href":"https:\/\/www.laihp.top\/zqb\/index.php?rest_route=\/wp\/v2\/posts\/2138\/revisions"}],"predecessor-version":[{"id":2140,"href":"https:\/\/www.laihp.top\/zqb\/index.php?rest_route=\/wp\/v2\/posts\/2138\/revisions\/2140"}],"wp:attachment":[{"href":"https:\/\/www.laihp.top\/zqb\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laihp.top\/zqb\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laihp.top\/zqb\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}