{"id":240,"date":"2011-02-10T23:21:32","date_gmt":"2011-02-10T15:21:32","guid":{"rendered":"http:\/\/www.myvoipapp.com\/blogs\/yxh\/?p=240"},"modified":"2019-02-12T20:11:56","modified_gmt":"2019-02-12T12:11:56","slug":"%e5%9c%a8ubuntu%e4%b8%ad%e6%90%ad%e5%bb%baapache2subversion%e7%8e%af%e5%a2%83","status":"publish","type":"post","link":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/2011\/02\/10\/%e5%9c%a8ubuntu%e4%b8%ad%e6%90%ad%e5%bb%baapache2subversion%e7%8e%af%e5%a2%83\/","title":{"rendered":"\u5728Ubuntu\u4e2d\u642d\u5efaApache2+Subversion\u73af\u5883"},"content":{"rendered":"<p>\u4ee5\u4e0b\u5404\u9879\u64cd\u4f5c\u57fa\u4e8eUbuntu10.10 desktop\u7248\u672c\uff0c\u5176\u4ed6\u7248\u672c\u4f30\u8ba1\u4e5f\u662f\u7c7b\u4f3c\uff0c\u5dee\u522b\u4e0d\u5927\u3002<\/p>\n<p>1\u3001\u5b89\u88c5\u8f6f\u4ef6<br \/>\n\u5b89\u88c5apache2: sudo apt-get install apache2<br \/>\n\uff08Ubuntu\u5b89\u88c5\u5b8c\u4e0a\u8ff0\u8f6f\u4ef6\u540e\uff0c\u4f1a\u81ea\u52a8\u542f\u52a8web\u670d\u52a1\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95eehttp:\/\/localhost\u3002\u5982\u679c\u4e00\u5207\u6b63\u5e38\u7684\u8bdd\uff0c\u5e94\u8be5\u80fd\u770b\u5230\u4e00\u4e2a\u975e\u5e38\u7b80\u964b\u7684html\u9875\u9762\uff09<br \/>\n\u5b89\u88c5subversion: sudo apt-get install subversion<br \/>\n\u5b89\u88c5apache\u7684svn\u6a21\u5757: sudo apt-get install libapache2-svn<\/p>\n<p>2\u3001\u521b\u5efasubversion\u5e93<\/p>\n<p>\u521b\u5efa\u76ee\u5f55 sudo mkdir -p \/var\/local\/svn\/repos<\/p>\n<p>\u521b\u5efasubversion\u5e93 sudo svnadmin create \/var\/local\/svn\/repos<\/p>\n<p>\u5c06\u6240\u6709\u6743\u6388\u4e88Apache(www-data) sudo chown -R www-data:www-data \/var\/local\/svn\/repos<\/p>\n<p>3\u3001\u914d\u7f6eApache2\uff08\u4f7f\u7528\u57fa\u672c\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u9a8c\u8bc1\u65b9\u5f0f\uff09<\/p>\n<p>\u4fee\u6539\/etc\/apache2\/mods-available\/dav_svn.conf,\u5b8c\u6210\u540e\u7684\u6587\u4ef6\u5982\u4e0b:<\/p>\n<p>&lt;Location \/mss_svn&gt;<\/p>\n<p>DAV svn<\/p>\n<p>SVNPath \/var\/local\/svn\/repos<\/p>\n<p>AuthType Basic<\/p>\n<p>AuthName &#8220;Subversion Repository&#8221;<\/p>\n<p>AuthUserFile \/etc\/subversion\/passwd<\/p>\n<p>Require valid-user<\/p>\n<p>&lt;\/Location&gt;<\/p>\n<p>\u521b\u5efa\u7528\u6237\u53ca\u5bc6\u7801: sudo htpasswd -c \/etc\/subversion\/passwd yxh<\/p>\n<p>\u6b64\u65f6\u7cfb\u7edf\u4f1a\u63d0\u793a\u8f93\u5165\u7528\u6237yxh\u7684\u5bc6\u7801\u3002\u7528\u6237\u540d\u548c\u5bc6\u7801\u4fdd\u5b58\u5728\u4e0a\u8ff0passwd\u6587\u4ef6\u4e2d\u3002<\/p>\n<p>4\u3001\u542f\u52a8Apache2\uff0c\u4f7f\u4e0a\u8ff0\u914d\u7f6e\u751f\u6548<\/p>\n<p>sudo service apache2 stop<\/p>\n<p>sudo service apache2 start<\/p>\n<p>5\u3001\u6253\u5f00\u6d4f\u89c8\u5668\u8bbf\u95ee\uff1ahttp:\/\/localhost\/mss_svn\uff0c\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801\u5c31\u53ef\u4ee5\u6d4f\u89c8svn\u5e93\u4e86\u3002<\/p>\n<p>\u5e73\u65f6\u4f7f\u7528TortoiseSVN\u65f6\uff0c\u4e5f\u662f\u4f7f\u7528http:\/\/localhost\/mss_svn\u5c31\u53ef\u4ee5\u5bf9\u5e93\u8fdb\u884c\u64cd\u4f5c\u4e86\uff0c\u5f53\u7136\uff0c\u4e5f\u9700\u8981\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002<\/p>\n<p>\uff08\u4e0a\u8ff0localhost\u4e5f\u53ef\u4ee5\u6362\u6210ip\u5730\u5740\u6216\u8005\u5176\u4ed6\u80fd\u8bbf\u95ee\u7684\u57df\u540d\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0b\u5404\u9879\u64cd\u4f5c\u57fa\u4e8eUbuntu10.10 desktop\u7248\u672c\uff0c\u5176\u4ed6\u7248\u672c\u4f30\u8ba1\u4e5f\u662f\u7c7b\u4f3c\uff0c\u5dee\u522b\u4e0d\u5927\u3002 1\u3001\u5b89\u88c5\u8f6f\u4ef6 \u5b89\u88c5apache2: sudo apt-get in&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.myvoipapp.com\/blogs\/yxh\/2011\/02\/10\/%e5%9c%a8ubuntu%e4%b8%ad%e6%90%ad%e5%bb%baapache2subversion%e7%8e%af%e5%a2%83\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[89,88,31],"class_list":["post-240","post","type-post","status-publish","format-standard","hentry","category-6","tag-apache","tag-svn","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/comments?post=240"}],"version-history":[{"count":3,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/240\/revisions"}],"predecessor-version":[{"id":1931,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/240\/revisions\/1931"}],"wp:attachment":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/media?parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/categories?post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/tags?post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}