{"id":1046,"date":"2014-08-29T03:27:42","date_gmt":"2014-08-29T03:27:42","guid":{"rendered":"http:\/\/blog.zhukunqian.com\/?p=1046"},"modified":"2014-08-29T03:27:42","modified_gmt":"2014-08-29T03:27:42","slug":"svn%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"http:\/\/blog.zhukunqian.com\/?p=1046","title":{"rendered":"svn\u670d\u52a1\u5668\u5b89\u88c5"},"content":{"rendered":"<p>mkdir -p \/archive\/download<br \/>\nmkdir -p \/opt\/compile<\/p>\n<p>yum install apr apr-devel apr-util apr-util-devel gcc openssl openssl-devel<\/p>\n<hr \/>\n<p>cd \/opt\/compile<br \/>\ntar xvfz \/archive\/download\/httpd-2.2.21.tar.gz<br \/>\ncd httpd-2.2.21<br \/>\nLDFLAGS=&#8221;-L\/lib64 -L\/usr\/lib64&#8243; .\/configure &#8211;prefix=\/opt\/apache2 &#8211;with-mpm=worker &#8211;enable-static-support &#8211;enable-module=rewrite -enable-dav -enable-so<br \/>\n#-enable-maintainer-mode<br \/>\nmake<br \/>\nmake install<br \/>\ncp \/opt\/apache2\/bin\/apachectl \/sbin<\/p>\n<hr \/>\n<p>tar xvfz \/archive\/download\/subversion-1.7.9.tar.gz<br \/>\ncd subversion-1.7.9<br \/>\nyum install unzip<br \/>\n.\/get-deps.sh<br \/>\n.\/configure &#8211;prefix=\/opt\/subversion &#8211;with-apxs=\/opt\/apache2\/bin\/apxs &#8211;with-ssl &#8211;with-zlib=\/usr\/local\/zlib<br \/>\nmake<br \/>\nmake install<\/p>\n<hr \/>\n<p>vi httpd.conf<br \/>\nLoadModule dav_svn_module modules\/mod_dav_svn.so<br \/>\nLoadModule authz_svn_module modules\/mod_authz_svn.so<br \/>\n&lt;Location \/svn&gt;<br \/>\nDAV svn<br \/>\nSVNParentPath \/opt\/svnroot\/repository<br \/>\nAuthzSVNAccessFile \/opt\/svnroot\/repository\/authgroup<br \/>\nAuthType Basic<br \/>\nAuthName &#8220;Subversion Repository&#8221;<br \/>\nAuthUserFile \/opt\/svnroot\/repository\/authpass<br \/>\nRequire valid-user<br \/>\n&lt;\/Location&gt;<\/p>\n<p>mkdir -p \/opt\/svnroot\/repository<\/p>\n<p>svnserve -d -r \/opt\/svnroot<\/p>\n<p>\u521b\u5efa\u5bc6\u94a5\u6587\u4ef6\u3001\u521d\u59cb\u5e10\u53f7<br \/>\nhtpasswd\u00a0 -c \/opt\/svnroot\/repository\/authpass yan<br \/>\nNew password:<\/p>\n<p>\u65b0\u589e\u5e10\u53f7<br \/>\nhtpasswd\u00a0 -b \/opt\/svnroot\/repository\/authpass newuser newpasswd<\/p>\n<p>\u8bbe\u7f6e\u6743\u9650<br \/>\nvi \/opt\/svnroot\/repository\/authgroup<br \/>\n[groups]<br \/>\nadmin=yan<br \/>\ntest=tan<\/p>\n<p>[\/]<br \/>\n@admin = rw<\/p>\n<p>[test:\/]<br \/>\n@test = rw<\/p>\n<p>&#8212;-<\/p>\n<p>\u521b\u5efa\u65b0\u7684 project newApp<br \/>\nsvnadmin create \/opt\/svnroot\/repository\/newApp<\/p>\n<hr \/>\n<p>\u5ba2\u6237\u7aef<br \/>\nsvn checkout <span class=\"nobr\"><a href=\"http:\/\/192.168.1.x\/svn\/newApp\" rel=\"nofollow\">http:\/\/192.168.1.x\/svn\/newApp<sup><img loading=\"lazy\" decoding=\"async\" class=\"rendericon\" src=\"http:\/\/10.234.10.10\/confluence\/images\/icons\/linkext7.gif\" alt=\"\" width=\"7\" height=\"7\" align=\"absmiddle\" border=\"0\" \/><\/sup><\/a><\/span><\/p>\n<p>\u8fdb\u5165 newApp \u76ee\u5f55\uff0c\u65b0\u5efa\u76ee\u5f55\uff1a<br \/>\ntrunk<br \/>\nbranches<br \/>\ntags<br \/>\nsvn add\/commit \u51c6\u5907\u597d\u57fa\u7840\u7ed3\u6784\u3002<\/p>\n<p>\u91cd\u65b0checkout<br \/>\nsvn checkout <span class=\"nobr\"><a href=\"http:\/\/192.168.1.x\/svn\/newApp\/trunk\" rel=\"nofollow\">http:\/\/192.168.1.x\/svn\/newApp\/trunk<sup><img loading=\"lazy\" decoding=\"async\" class=\"rendericon\" src=\"http:\/\/10.234.10.10\/confluence\/images\/icons\/linkext7.gif\" alt=\"\" width=\"7\" height=\"7\" align=\"absmiddle\" border=\"0\" \/><\/sup><\/a><\/span><br \/>\n\u5373\u53ef\u8fdb\u5165\u6b63\u5e38\u5f00\u53d1\uff0c\u4ee5\u540e\u6839\u636e\u9700\u8981\u4e3atrunk\u76ee\u5f55\u589e\u52a0branch\u3001tag\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u6ce8\uff1a\u5982\u679c\u9047\u5230\u4ee5\u4e0b\u95ee\u9898<\/p>\n<p>\/usr\/local\/lib\/libsvn_subr-1.so.0: undefined symbol: apr_hash_clear<\/p>\n<p>\u8fd9\u662f\u56e0\u4e3ahttpd\u548csubversion\u7f16\u8bd1\u4f7f\u7528\u7684apr\u548capr-util\u4f7f\u7528\u7684\u5e93\u4e0d\u76f8\u540c\u9020\u6210\u7684\u3002<\/p>\n<p>\u53ef\u4ee5\u5728\u7f16\u8bd1httpd\u65f6\u6307\u5b9a&#8211;with-par \u548c &#8211;withd-par-util\u53c2\u6570\u6765\u6307\u5b9a\u4f7f\u7528subversion\u76f8\u540c\u7684apr\u548capr-util\u6765\u7f16\u8bd1httpd.<\/p>\n<p>LDFLAGS=&#8221;-L\/lib64 -L\/usr\/lib64&#8243; .\/configure &#8211;prefix=\/opt\/apache2 &#8211;with-mpm=worker &#8211;enable-static-support &#8211;enable-module=rewrite -enable-dav -enable-so &#8211;with-apr=\/opt\/compile\/subversion-1.7.9\/apr &#8211;with-apr-util=\/opt\/compile\/subversion-1.7.9\/apr-util<\/p>\n","protected":false},"excerpt":{"rendered":"<p>mkdir -p \/archive\/download mkdir -p \/opt &hellip;<\/p>\n<p class=\"read-more\"><a href=\"http:\/\/blog.zhukunqian.com\/?p=1046\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.zhukunqian.com\/index.php?rest_route=\/wp\/v2\/posts\/1046"}],"collection":[{"href":"http:\/\/blog.zhukunqian.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.zhukunqian.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.zhukunqian.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.zhukunqian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1046"}],"version-history":[{"count":1,"href":"http:\/\/blog.zhukunqian.com\/index.php?rest_route=\/wp\/v2\/posts\/1046\/revisions"}],"predecessor-version":[{"id":1047,"href":"http:\/\/blog.zhukunqian.com\/index.php?rest_route=\/wp\/v2\/posts\/1046\/revisions\/1047"}],"wp:attachment":[{"href":"http:\/\/blog.zhukunqian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.zhukunqian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1046"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.zhukunqian.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}