{"id":1781,"date":"2012-08-07T06:27:44","date_gmt":"2012-08-06T21:27:44","guid":{"rendered":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/?p=1781"},"modified":"2012-08-07T06:27:44","modified_gmt":"2012-08-06T21:27:44","slug":"os-x-server-%e3%81%ae-server-app-%e3%81%ab%e3%82%bb%e3%83%9e%e3%82%8b","status":"publish","type":"post","link":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/2012\/1781","title":{"rendered":"OS X Server \u306e Server.app \u306b\u30bb\u30de\u308b"},"content":{"rendered":"<p>\u3082\u3057\u304f\u306f Mac App Store \u914d\u5e03\u306f\u8af8\u5203\u306e\u5263(\u4f55<\/p>\n<p><!--more-->\u00a0Xcode 4.3 \u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u5f53\u6642\u3001\u6240\u8b02 Command Line Tools \u304c\u52d5\u304b\u306a\u304f\u306a\u3063\u3066\u5927\u9a12\u304e\u3057\u3066\u307e\u3057\u305f\u3002\u7d50\u5c40\u306e\u3068\u3053\u308d<\/p>\n<pre>sudo xcode-select -switch \/Applications\/Xcode.app\/Contents\/Developer<\/pre>\n<p>\u3068\u304b\u3084\u308b\u3053\u3068\u3067\u52d5\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u304c\u3002<br \/>\n\u3053\u308c\u304c\u4f55\u3092\u610f\u5473\u3059\u308b\u304b\u3068\u3044\u3046\u3068\u3001\u4eca\u307e\u3067\u306f \/usr \u4ee5\u4e0b\u306b\u30b3\u30d4\u30fc\u3055\u308c\u3066\u3044\u305f Command Line Tools \u304c Xcode.app \u306b\u5185\u5305\u3055\u308c\u305f\u307e\u307e\u3068\u306a\u308a\u3001\u305d\u308c\u3092<span style=\"color: #888888;\">(Xcode.app\/Contents\/Developer\/usr \u4ee5\u4e0b\u306b\u7f6e\u3044\u305f\u307e\u307e)<\/span>\u76f4\u63a5\u547c\u3076\u5f62\u306b\u306a\u3063\u305f\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002 Mac App Store \u304b\u3089\u306e\u914d\u5e03\u3084\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u8003\u3048\u308b\u3068\u3053\u306e\u307b\u3046\u304c\u3044\u3044\u3093\u3067\u3057\u3087\u3046\u3002\u9055\u548c\u611f\u304c\u534a\u7aef\u306a\u3044\u3067\u3059\u304c\u3002<br \/>\n\u3064\u307e\u308a\u4f55\u304c\u8a00\u3044\u305f\u3044\u304b\u3068\u3044\u3046\u3068\u3001 OS X Server \u306e Server.app \u3082\u540c\u3058\u3088\u3046\u306b\u4eca\u307e\u3067 \/usr \u4ee5\u4e0b\u306b\u30b3\u30d4\u30fc\u3055\u308c\u3066\u3044\u305f\u30b3\u30de\u30f3\u30c9\u305d\u306e\u4ed6\u304c Server.app \u306b\u5185\u5305\u3055\u308c\u305f\u307e\u307e\u3001\u3069\u3053\u306b\u3082\u30b3\u30d4\u30fc\u3055\u308c\u305a\u306b\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3068\u3044\u3046\u3053\u3068\u3092\u4e3b\u5f35\u3057\u305f\u3044\u306e\u3067\u3059\u3002\u4eca\u307e\u3067\u4f55\u306e\u6c17\u306a\u3057\u306b\u4f7f\u3063\u3066\u3044\u305f serveradmin \u3059\u3089\u3082\u3072\u3068\u624b\u9593\u304b\u3051\u306a\u3044\u3068\u4f7f\u3048\u306a\u3044\u3068\u3044\u3046\u2026\u3002<\/p>\n<p>\u63bb\u3044\u6458\u3093\u3067\u8981\u7d04\u3059\u308b\u3068 \/Applications\/Server.app\/Contents\/ServerRoot \u4ee5\u4e0b\u306b\u304a\u524d\u306e\u6b32\u3057\u3044\u3082\u306e\u306f\u63c3\u3063\u3066\u308b\u305c\u3001\u3068\u3044\u3046\u8a71\u3067\u3059\u304c\u3001\u81ea\u5206\u3067\u6574\u7406\u3059\u308b\u305f\u3081\u306b\u3082\u3046\u3061\u3087\u3063\u3068\u66f8\u304d\u307e\u3059\u3002<\/p>\n<h3>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3001\u30c7\u30fc\u30bf<\/h3>\n<p>\u6d41\u77f3\u306b \/Library\/Server \u4ee5\u4e0b\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306f Server.app \u3067\u8a2d\u5b9a\u3057\u305f\u3068\u3053\u308d\u306b\u3082\u79fb\u305b\u308b\u306e\u3067\u3042\u304f\u307e\u3067\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3063\u3066\u8a71\u3067\u3059\u304c\u3002 \/Library\/Server\/{\u30b5\u30fc\u30d3\u30b9\u540d}\/(Config|Data) \u3068\u3044\u3046\u5177\u5408\u306b\u898b\u901a\u3057\u306f\u3044\u3044\u306e\u3067\u3001\u5927\u4f53\u308f\u304b\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u4e00\u90e8 \/private\/etc \u306b\u6b8b\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u304c\u3042\u308b\u4e0a\u306b \/private\/etc \u306b\u306f OS X Mountain Lion \u7531\u6765\u306e\u30d5\u30a1\u30a4\u30eb\u3082\u3042\u308b\u3063\u3066\u3053\u3068\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070 postfix \u306f \/private\/etc\/postfix \u3068 \/Library\/Server\/Mail\/Config\/postfix \u306e\u4e8c\u304b\u6240\u3042\u308a\u307e\u3059\u304c\u3001\u6709\u52b9\u306a\u306e\u306f\u5f8c\u8005\u3067\u3059\u3002\u3055\u3089\u306b main.cf \u3092\u8aad\u3081\u3070\u308f\u304b\u308a\u307e\u3059\u304c\u3001 aliases \u306f \/private\/etc\/aliases \u304c\u30db\u30f3\u30e2\u30ce\u3067\u3059\u3002\u3082\u3046\u3061\u3087\u3063\u3068\u3046\u307e\u304f\u307e\u3068\u3081\u3066\u6b32\u3057\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u305d\u308c\u306f\u304d\u3063\u3068\u6b21\u306e\u30e1\u30b8\u30e3\u30fc\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u5f85\u3061\u306a\u306e\u3067\u3057\u3087\u3046\u3001\u51fa\u308b\u304b\u3069\u3046\u304b\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3002<\/p>\n<h3>\u30b3\u30de\u30f3\u30c9\u7fa4<\/h3>\n<p>\/usr\/bin \u3084 \/usr\/sbin \u304b\u3089\u00a0\/Applications\/Server.app\/Contents\/ServerRoot\/usr\/bin \u3084\u00a0\/Applications\/Server.app\/Contents\/ServerRoot\/usr\/sbin \u306b\u304a\u5f15\u8d8a\u3057\u3067\u3059\u3002\u308f\u304b\u3063\u3066\u3057\u307e\u3048\u3070\u305d\u308c\u3060\u3051\u306a\u3093\u3067\u3059\u304c\u3001 PATH \u3092\u901a\u3059\u52c7\u6c17\u306f\u306a\u3044\u306e\u3067 serveradmin \u306a\u3093\u304b\u306f\u00a0\/Applications\/Server.app\/Contents\/ServerRoot\/usr\/sbin\/serveradmin \u3068\u30d5\u30eb\u30d1\u30b9\u6307\u5b9a\u3067\u4f7f\u3063\u3066\u307e\u3059\u3002 SERVERROOT=\u00a0\/Applications\/Server.app\/Contents\/ServerRoot \u3068\u304b\u66f8\u3044\u305f\u3046\u3048\u3067 ${SERVERROOT}\/usr\/sbin\/serveradmin \u3068\u3084\u308b\u307b\u3046\u304c\u30aa\u30b7\u30e3\u30ec\u306a\u306e\u304b\u3082\u3067\u3059\u304c\u3002<\/p>\n<h3>man<\/h3>\n<p>\u30b3\u30de\u30f3\u30c9\u7fa4\u304c\u79fb\u3063\u3066\u308b\u3093\u3060\u304b\u3089 man \u3060\u3063\u3066\u79fb\u3063\u3066\u307e\u3059\u3002<\/p>\n<pre>man -M\u00a0\/Applications\/Server.app\/Contents\/ServerRoot\/usr\/share\/man<\/pre>\n<p>\u3068\u3059\u308b\u304b \/etc\/man.conf \u306b\u66f8\u304d\u8db3\u3059\u304b\u306e\u4e8c\u629e\u304b\u306a\u30fc? \u3067\u3082\u4e2d\u8eab\u306f\u3042\u307e\u308a\u5909\u308f\u3063\u3066\u306a\u3044\u3063\u307d\u3044\u306e\u3067\u8aad\u307f\u305f\u3044\u3068\u304d\u306b\u90fd\u5ea6\u6307\u5b9a\u306e\u524d\u8005\u306e\u307b\u3046\u304c\u3044\u3044\u304b\u3082\u3057\u308c\u306a\u3044<\/p>\n<h3>LaunchDaemons<\/h3>\n<p>\u3053\u308c\u3082\u3084\u3063\u3071\u308a \/Applications\/Server.app\/Contents\/ServerRoot\/System\/Library\/LaunchDaemons \u306b\u3044\u307e\u3059\u3002\u305f\u3060\u3001 Mountain Lion \u306b\u6700\u521d\u3063\u304b\u3089\u6e96\u5099\u3055\u308c\u3066\u308b\u3084\u3064<span style=\"color: #888888;\">(postfix \u3068\u304b apache \u3068\u304b)<\/span>\u306f \/System\/Library\/LaunchDaemons \u306e\u307e\u307e\u306a\u306e\u3067\u3001\u6570\u306f\u5c11\u306a\u3044\u3067\u3059\u306d\u3002\u3068\u3044\u3046\u304b OS X Server \u306b\u3057\u306a\u3044\u3068\u5165\u3089\u306a\u3044\u3082\u306e\u306f\u3053\u308c\u3057\u304b\u306a\u3044\u3001\u3068\u3044\u3046\u3053\u3068\u304b\u2026?<\/p>\n<h3>\/Applications\/Server.app\/Contents\/ServerRoot\/System\/Library\/ServerSetup<\/h3>\n<p>Server.app \u521d\u56de\u7acb\u3061\u4e0a\u3052\u6642\u306b\u3057\u304b\u52d5\u304b\u305a\u3001\u3057\u304b\u3082\u4f55\u3092\u3084\u3063\u3066\u308b\u304b\u4e0d\u660e\u306a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u51e6\u7406?\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u3053\u3053\u3067\u3059\u3002 Lion Server \u306e\u6642\u306f<a href=\"http:\/\/borg4.vdomains.jp\/~goro\/diary\/2012\/1610\">\/System\/Library\/ServerSetup<\/a>\u00a0\u3060\u3063\u305f\u306e\u3067\u4eca\u56de\u306e\u30eb\u30fc\u30eb\u306b\u5f93\u3063\u3066\u308b\u3060\u3051\u3067\u3059\u3051\u3069\u3002\u4eca\u56de\u3082\u4f53\u611f\u3067 8 \u5272\u4ee5\u4e0a\u304c\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u3044\u3056\u3068\u306a\u3063\u305f\u3089\u4e2d\u8eab\u3092\u8aad\u3093\u3067\u540c\u3058\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u308a\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u81ea\u4f53\u3092\u5b9f\u884c\u3057\u3066\u3084\u308c\u3070\u3046\u307e\u304f\u52d5\u3044\u3066\u306a\u3044\u30b5\u30fc\u30d3\u30b9\u3092\u5fa9\u6d3b\u3055\u305b\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u66f4\u306b\u9177\u3044\u72b6\u6cc1\u306b\u306a\u308b\u304b\u3082\u3067\u3059\u306e\u3067\u304a\u52e7\u3081\u306f\u3057\u307e\u305b\u3093\u304c\u30fc<\/p>\n<h3>\/Library\/Server\/Previous<\/h3>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u305f\u5834\u5408\u306f\u3001\u3053\u3053\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u524d\u306e\u30c7\u30fc\u30bf\u304c\u6b8b\u3063\u3066\u3044\u308b\u3089\u3057\u3044\u3067\u3059\u3002\u672c\u5f53\u306b\u5fc5\u8981\u306a\u3082\u306e\u304c\u6b8b\u3063\u3066\u3044\u308b\u304b\u306f\u5225\u3067\u3059\u304c\u2026\u3002\u3053\u3053\u306b\u4e00\u7e37\u306e\u671b\u307f\u3092\u304b\u3051\u308b\u306e\u306f\u3084\u3063\u3071\u308a\u9593\u9055\u3044\u306a\u306e\u3067\u3001\u3061\u3083\u3093\u3068\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306f\u53d6\u308a\u307e\u3057\u3087\u3046(\u7b11<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3082\u3057\u304f\u306f Mac App Store \u914d\u5e03\u306f\u8af8\u5203\u306e\u5263(\u4f55<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[77,62],"class_list":["post-1781","post","type-post","status-publish","format-standard","hentry","category-mac","tag-mac","tag-os-x-server"],"_links":{"self":[{"href":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/posts\/1781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/comments?post=1781"}],"version-history":[{"count":16,"href":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/posts\/1781\/revisions"}],"predecessor-version":[{"id":1803,"href":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/posts\/1781\/revisions\/1803"}],"wp:attachment":[{"href":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/media?parent=1781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/categories?post=1781"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/borg4.vdomains.jp\/~goro\/diary\/wp-json\/wp\/v2\/tags?post=1781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}