{"id":2687,"date":"2015-09-27T17:53:50","date_gmt":"2015-09-27T09:53:50","guid":{"rendered":"http:\/\/blog.pighead.cc\/whsyu\/?p=2687"},"modified":"2015-09-27T17:53:50","modified_gmt":"2015-09-27T09:53:50","slug":"os-x-server-5-de-xcode-fuwu","status":"publish","type":"post","link":"https:\/\/blog.pighead.cc\/whsyu\/2015\/09\/27\/os-x-server-5-de-xcode-fuwu\/","title":{"rendered":"OS X Server 5 \u7684 Xcode \u670d\u52d9"},"content":{"rendered":"<p class=\"bb-post-separator\"><strong>[\u83ef\u8a9e, cmn-Hant-TW]  <\/strong><\/p><p>\u6709\u4e00\u53f0\u6a5f\u5668\u662f\u7528 OS X Server 4.x \u67b6\u8a2d\u7684\uff0c\u4e0a\u9762\u63d0\u4f9b\u57fa\u672c\u7684 redmine\/git\/svn \u670d\u52d9\uff0c\u4f7f\u7528\u4e0a\u6c92\u4ec0\u9ebc\u554f\u984c\uff0c\u4e0d\u904e\u81ea\u5f9e\u5347\u7d1a\u5230 OS X Server 5 \u4e4b\u5f8c\u5c31\u8b8a\u5f97\u602a\u602a\u7684\u4e86\uff0c\u4e00\u958b\u59cb\u9664\u4e86 redmine \u6b63\u5e38\u5916 git\/svn \u5b8c\u5168\u4e0d\u80fd\u52d5\u4f5c\uff0c\u76f4\u63a5\u4e0b git \u6307\u4ee4\u624d\u767c\u73fe\u662f\u56e0\u70ba\u540c\u6642\u5347\u7d1a\u7684 Xcode 7 \u8981\u5148\u540c\u610f\u689d\u6b3e\u624d\u80fd\u4f7f\u7528\uff0c\u9019\u500b\u554f\u984c\u89e3\u6c7a\u4e4b\u5f8c redmine \u88e1\u9762\u5c31\u53ef\u4ee5\u6b63\u5e38\u700f\u89bd git \u8ddf svn \u6a94\u6848\u5eab\u7684\u5167\u5bb9\u4e86\uff0c\u4e0d\u904e\u5947\u602a\u7684\u662f\u9060\u7aef\u5b58\u53d6\u6a94\u6848\u5eab\u7684\u6642\u5019 svn \u53ef\u4ee5\u52d5\uff0c\u4f46\u662f git \u5c31\u4e00\u76f4\u5403 <code>503 Service Unavailable<\/code><\/p>\n<p>\u770b\u4e86\u4e00\u4e0b\u624d\u767c\u73fe\u539f\u4f86 Server 5 \u7684 apache \u8a2d\u5b9a\u6709\u4e86\u5f88\u5927\u7684\u8b8a\u52d5\uff0c\u57fa\u672c\u4e0a\u6240\u6709\u7684\u7db2\u9801\u5167\u5bb9\u90fd\u662f\u900f\u904e Proxy\/Reverse Proxy \u5f9e localhost \u4e0a\u7684 port 34580 \u8ddf 34543 \u4e1f\u5230 port 80 \u53ca 443\u3002\u800c\u7cfb\u7d71\u63d0\u4f9b\u7684\u6771\u897f\uff0c\u50cf\u662f wiki \u6216\u662f Xcode \u5566\u90fd\u88ab\u6b78\u985e\u70ba service\uff0c\u4e5f\u6703\u5728\u81ea\u5df1\u7684 port \u4e0a\u8dd1\uff0c\u7136\u5f8c\u900f\u904e proxy \u4e1f\u5230 port 80 \u53ca 443\uff0c\u500b\u4eba\u63a8\u6e2c\u9019\u6a23\u7684\u76ee\u7684\u662f\u8981\u628a\u7db2\u9801\u670d\u52d9\u8ddf\u5176\u4ed6\u670d\u52d9\u5206\u96e2\uff0c\u5c31\u7b97\u628a\u7db2\u9801\u670d\u52d9\u6574\u500b\u95dc\u6389\uff0c\u4e5f\u4e0d\u6703\u5f71\u97ff\u5230\u5176\u4ed6\u6709\u63d0\u4f9b\u7db2\u9801\u4ecb\u9762\u7684\u670d\u52d9\u3002<\/p>\n<p>\u9019\u4e9b\u7cfb\u7d71\u63d0\u4f9b\u670d\u52d9\u7684\u4f4d\u7f6e\u662f\u9810\u5148\u5c31\u8a2d\u597d\u7684\uff0c\u50cf wiki \u5c31\u662f\u5728 \/wiki\uff0c\u800c\u4e14\u4f3c\u4e4e\u4e0d\u80fd\u6539\uff0c\u5982\u679c\u8a72\u670d\u52d9\u6c92\u958b\uff0c\u4f7f\u7528\u8005\u53c8\u5617\u8a66\u7528\u7db2\u9801\u958b\u555f\u90a3\u500b\u4f4d\u7f6e\u7684\u8a71\uff0c\u6703\u5403\u5230\u4e00\u500b\u9084\u7b97\u883b\u6f02\u4eae\u7684 503 \u932f\u8aa4\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2690 size-medium\" src=\"https:\/\/blog.pighead.cc\/whsyu\/files\/2015\/09\/2015-09-27-17.03.57.png\" alt=\"503 Service Unavailable\" width=\"450\" height=\"159\" srcset=\"https:\/\/blog.pighead.cc\/whsyu\/files\/2015\/09\/2015-09-27-17.03.57.png 1486w, https:\/\/blog.pighead.cc\/whsyu\/files\/2015\/09\/2015-09-27-17.03.57-450x159.png 450w, https:\/\/blog.pighead.cc\/whsyu\/files\/2015\/09\/2015-09-27-17.03.57-1024x361.png 1024w, https:\/\/blog.pighead.cc\/whsyu\/files\/2015\/09\/2015-09-27-17.03.57-900x317.png 900w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/p>\n<p>\u5230\u9019\u908a\u5c31\u5927\u81f4\u4e0a\u6e05\u695a\u4e86\uff0cgit \u6703\u4e0d\u80fd\u52d5\u4e0d\u662f\u56e0\u70ba\u8a2d\u5b9a\u6709\u554f\u984c\uff0c\u800c\u662f\u8a2d\u5b9a\u6574\u500b\u88ab Xcode \u670d\u52d9\u84cb\u6389\uff0c\u7136\u5f8c\u6211\u53c8\u6c92\u6709\u958b\u555f Xcode \u670d\u52d9\uff0c\u6240\u4ee5\u5403\u5230\u7cfb\u7d71\u7d66\u7684 503\u3002\u9019\u6a23\u7684\u8a71\u90a3\u6709\u4e09\u500b\u9078\u64c7\uff1a<\/p>\n<ol>\n<li>\u6539 git \u670d\u52d9\u7db2\u5740\u4f4d\u7f6e &#8211; \u4e0d\u8981\u7528 \/git \u5c31\u597d\u4e86\uff0c\u4e0d\u904e\u9019\u6a23\u7684\u8a71\u7528\u6236\u7aef\u6703\u6539\u5230\u723d<\/li>\n<li>\u5b8c\u5168\u95dc\u6389 Xcode \u7684 git &#8211; \u628a\u7db2\u9801\u670d\u52d9\u88e1\u9762 \/git \u76f8\u95dc\u7684 proxy \u95dc\u4e7e\u6de8\uff0c\u8981\u52d5\u5230\u7684\u5730\u65b9\u4f3c\u4e4e\u4e0d\u5c11<\/li>\n<li>\u628a Xcode \u7684 git \u7684\u4f4d\u7f6e\u6307\u5230\u6211\u5011\u7684 git &#8211; \u8a2d\u5b9a\u76f8\u5c0d\u7c21\u55ae\uff0c\u4e0d\u904e Xcode \u670d\u52d9\u8981\u6253\u958b\u624d\u80fd\u7528<\/li>\n<\/ol>\n<p>\u5f8c\u4f86\u662f\u7528\u7b2c\u4e09\u500b\u65b9\u6cd5\uff0c\u8981\u6539\u7684\u6a94\u6848\u662f<br \/>\n<code>\/Applications\/Xcode.app\/Contents\/Developer\/usr\/share\/xcs\/httpd_xcs.conf<\/code><\/p>\n<p>\u6709\u53ef\u80fd\u6bcf\u6b21\u66f4\u65b0 Xcode \u4e4b\u5f8c\u90fd\u8981\u91cd\u6539\u4e00\u6b21\u3002\u81f3\u65bc Xcode 6 \u7684\u8a71\u4f3c\u4e4e\u5f97\u6539\u5225\u7684\u6a94\u6848\uff0c\u6c92\u6709\u7279\u5225\u53bb\u6e2c\u8a66\uff0c\u4f46\u662f\u5f9e\u6a94\u540d\u4f86\u770b\u61c9\u8a72\u662f<br \/>\n<code>\/Library\/Server\/Web\/Config\/apache2\/httpd_xcs_v6.conf<\/code><\/p>\n<p>\u56e0\u70ba\u6211\u5011\u662f\u900f\u904e mod_perl \u4f86\u7528 Redmine \u505a\u8a8d\u8b49\uff0c\u6240\u4ee5\u8981\u628a mod_perl \u52a0\u9032\u53bb\uff0c\u95dc\u65bc mod_perl \u7684\u4f7f\u7528\u65b9\u5f0f\u53ef\u4ee5\u53c3\u8003 Redmine \u5b98\u7db2<a href=\"http:\/\/www.redmine.org\/projects\/redmine\/wiki\/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl\">\u9019\u7bc7<\/a>\u8aaa\u660e\uff0c\u53e6\u5916 mod_perl \u5728 osx \u4e0b\u9762\u5f88\u6709\u53ef\u80fd\u4e5f\u5f97\u81ea\u5df1\u7de8\u4e00\u500b\uff0c\u7d30\u7bc0\u5c31\u4e0d\u8a73\u8ff0\u4e86\u3002<\/p>\n<p>\u6539\u5b8c\u8a2d\u5b9a\u6a94\u5f8c\u628a Server \u7684 Xcode \u670d\u52d9\u6253\u958b\u61c9\u8a72\u5c31\u53ef\u4ee5\u7528\u4e86\uff0c\u5982\u679c\u8981\u770b\u8dd1\u7684\u60c5\u6cc1\u7684\u8a71\u53ef\u4ee5\u770b\uff1a<br \/>\n<code>\/var\/log\/apache2\/services\/xcode_access_log<br \/>\n\/var\/log\/apache2\/services\/xcode_error_log<br \/>\n<\/code><\/p>\n<p>\u7562\u7adf\u9019\u500b\u662f Xcode \u670d\u52d9\u7684\u7db2\u9801\u754c\u9762\uff0c\u4e0d\u662f\u7db2\u9801\u670d\u52d9\uff0c\u6240\u4ee5\u8a18\u9304\u6a94\u662f\u5206\u958b\u7684\uff0c\u7576\u7136\u5e95\u5c64\u4f7f\u7528\u7684\u7db2\u9801\u4f3a\u670d\u5668\u9084\u662f apache \u5c31\u662f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[\u83ef\u8a9e, cmn-Hant-TW] \u6709\u4e00\u53f0\u6a5f\u5668\u662f\u7528 OS X Server 4.x \u67b6\u8a2d\u7684\uff0c\u4e0a\u9762\u63d0\u4f9b\u57fa\u672c\u7684 redmine\/git\/svn \u670d\u52d9\uff0c\u4f7f\u7528\u4e0a\u6c92\u4ec0\u9ebc\u554f\u984c\uff0c\u4e0d\u904e\u81ea\u5f9e\u5347\u7d1a\u5230 OS X Server 5 \u4e4b\u5f8c\u5c31\u8b8a\u5f97\u602a\u602a\u7684\u4e86\uff0c\u4e00\u958b\u59cb\u9664\u4e86 redmine \u6b63\u5e38\u5916 git\/svn \u5b8c\u5168\u4e0d\u80fd\u52d5\u4f5c\uff0c\u76f4\u63a5\u4e0b git \u6307\u4ee4\u624d\u767c\u73fe\u662f\u56e0\u70ba\u540c\u6642\u5347\u7d1a\u7684 Xcode 7 \u8981\u5148\u540c\u610f\u689d\u6b3e\u624d\u80fd\u4f7f\u7528\uff0c\u9019\u500b\u554f\u984c\u89e3\u6c7a\u4e4b\u5f8c redmine \u88e1\u9762\u5c31\u53ef\u4ee5\u6b63\u5e38\u700f\u89bd git \u8ddf svn \u6a94\u6848\u5eab\u7684\u5167\u5bb9\u4e86\uff0c\u4e0d\u904e\u5947\u602a\u7684\u662f\u9060\u7aef\u5b58\u53d6\u6a94\u6848\u5eab\u7684\u6642\u5019 svn \u53ef\u4ee5\u52d5\uff0c\u4f46\u662f git \u5c31\u4e00\u76f4\u5403 503 Service Unavailable \u770b\u4e86\u4e00\u4e0b\u624d\u767c\u73fe\u539f\u4f86 Server 5&hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49],"tags":[13,4604,168,4578,108,4603],"class_list":["post-2687","post","type-post","status-publish","format-standard","hentry","category-mac","tag-apache","tag-git","tag-mac-os-x","tag-redmine","tag-subversion","tag-xcode"],"_links":{"self":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2687","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/comments?post=2687"}],"version-history":[{"count":7,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2687\/revisions"}],"predecessor-version":[{"id":2695,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2687\/revisions\/2695"}],"wp:attachment":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/media?parent=2687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/categories?post=2687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/tags?post=2687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}