{"id":649,"date":"2014-08-10T21:05:33","date_gmt":"2014-08-10T12:05:33","guid":{"rendered":"http:\/\/www.bunza.net\/Blog\/?p=649"},"modified":"2021-06-08T01:01:13","modified_gmt":"2021-06-07T16:01:13","slug":"FreeBSD%E3%81%ABPostgresql9.3%E3%82%92%E5%85%A5%E3%82%8C%E3%82%8B%E3%80%80%E4%BB%96","status":"publish","type":"post","link":"http:\/\/www.bunza.net\/Blog\/?p=649","title":{"rendered":"FreeBSD\u306bPostgresql9.3\u3092\u5165\u308c\u308b\u3000\u4ed6"},"content":{"rendered":"<p>\u3044\u3084\u30fc\u3001\u3084\u3063\u3071\u308a\u4e88\u7fd2\u306f\u5927\u5207\u3060\u3002\u3053\u3093\u306a\u306b\u30c8\u30e9\u30d6\u30eb\u3042\u3063\u305f\u3068\u306f\u601d\u3044\u3082\u3057\u306a\u304b\u3063\u305f\u3002<br \/>\n\u203b\u4e00\u756a\u5927\u304d\u3044\u306e\u306fSamba4\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u3068\u3053\u308d\u306b\u66f8\u3044\u305f\u3051\u3069\u3001pkg\u3067\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u6240\u5b9a\u306e\u4f4d\u7f6e\u306b\u30bb\u30c3\u30c8\u3055\u308c\u306a\u304b\u3063\u305f\u4e8b\u3002<br \/>\n\u4e00\u5fdc\u30af\u30ea\u30fc\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u524d\u63d0\u306b\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u30c6\u30b9\u30c8\u4e2d\u306f\u554f\u984c\u304c\u3042\u308b\u3068OS\u306e\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u958b\u59cb\u3059\u308b\u3082\u3093\u3067\u3001\u7d50\u69cb\u53b3\u3057\u304b\u3063\u305f\u3067\u3059\u3002<\/p>\n<p>\u3055\u3066\u3001\u305d\u3046\u3057\u3066Samba\u5165\u308c\u305f\u3068\u3053\u308d\u307e\u3067\u5dfb\u304d\u623b\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3053\u3053\u3067\u6c17\u3065\u3044\u3066\u3053\u3068\u3092\u5e7e\u3064\u304b\u88dc\u6b63\u3057\u3068\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30fbSamba\u304c\u306a\u3093\u304b\u30a8\u30e9\u30fc\u3092\u5410\u3044\u3066\u3044\u308b\u4ef6\u3002<\/p>\n<p style=\"margin-left:40px\">Global\u30bb\u30af\u30b7\u30e7\u30f3\u306e[printing]\u3092[bsd]\u306b\u3059\u308b\u3068\u30d7\u30ea\u30f3\u30bf\u30fc\u307e\u308f\u308a\u306f\u6b62\u307e\u308a\u307e\u3059\u3002<\/p>\n<p>\u30fbX.org\u304cVMWare\u5185\u3067\u6700\u5927\u306b\u306a\u3089\u306a\u3044\u3068\u304d<\/p>\n<p style=\"margin-left:40px\">&nbsp;&nbsp;&nbsp; SubSection &quot;Display&quot;<br \/>\n&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Viewport&nbsp;&nbsp; 0 0<br \/>\n&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Depth&nbsp;&nbsp;&nbsp;&nbsp; 24<br \/>\n&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Modes&nbsp; &quot;1280&#215;1024&quot;<br \/>\n&nbsp;&nbsp; &nbsp;EndSubSection<\/p>\n<p style=\"margin-left:40px\">\u306e\u3088\u3046\u306b\u3001\u6700\u5927\u8868\u793a\u3092\u6307\u793a\u3057\u3066\u3057\u307e\u3048\u3070\u3044\u3044<\/p>\n<p>\u3055\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306ePostgresql\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f<\/p>\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"height:50px; width:600px\">\n<tbody>\n<tr>\n<td>root@ns2:~ # cd \/usr\/ports\/databases\/postgresql93-server<br \/>\n\t\t\troot@ns2:~ # make install clean<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u3053\u3067\u9593\u9055\u3048\u3066\u306f\u3044\u3051\u306a\u3044\u306e\u306f\u3001\u73fe\u5728\u958b\u767a\u4e2d\u30d0\u30fc\u30b8\u30e7\u30f3\u306e postgresql94-server\u306f\u30c0\u30e1\u3068\u3044\u3046\u3053\u3068\u3002\u3053\u308c\u306f\u7ba1\u7406\u30c4\u30fc\u30eb\u306epgadmin\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u90fd\u5408\u3002<br \/>\n\u7d9a\u3044\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a2d\u5b9a\u306e\u305f\u3081\u306b\u30e6\u30fc\u30b6\u30fc\u3092\u5909\u66f4<\/p>\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"height:29px; width:600px\">\n<tbody>\n<tr>\n<td>root@ns2:~ # su &#8211; pgsql<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30bd\u30fc\u30b9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u308aLinux\u306e\u5834\u5408\u306f\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\u30fc\u304cpostgres\u3067\u3059\u304c\u3001FreeBSD\u306e\u5834\u5408\u306fpgssql\u3067\u3059\u3002<\/p>\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"width:600px\">\n<tbody>\n<tr>\n<td>$ initdb &#8211;encoding=EUC_JP &#8211;no-loclale -D [hoge]<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306a\u3044\u8a2d\u5b9a\u3092\u3057\u305f\u3044\u3068\u304d\u306f\u5f8c\u308d\u306b\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3064\u3051\u307e\u3059\u3002\u6587\u5b57\u30a8\u30f3\u30b3\u30fc\u30c9\u306f\u6a19\u6e96\u3067\u306fUTF-8\u3067\u3059\u3002\u4eca\u56de\u69d8\u3005\u306a\u4e8b\u60c5\u3067EUC-JP\u306b\u3059\u308b\u306e\u3067\u3001\u300c&#8211;encoding=\u300d\u3067\u6307\u5b9a\u3002\u307e\u305f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306a\u3044\u5834\u6240\u306bDB\u3092\u914d\u7f6e\u3059\u308b\u306b\u306f\u300c-D \u300d\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u3053\u3053\u307e\u3067\u6765\u305f\u3089rc.conf\u306b\u4ee5\u4e0b\u3092\u66f8\u304d\u8db3\u3057\u307e\u3059\u3002<\/p>\n<p style=\"margin-left:40px\">postgresql_enable=&quot;YES&quot;<br \/>\npostgresql_data=&quot;[hoge]&quot;<br \/>\npostgresql_flags=&quot;-w -s -m fast -o &#39;-i&#39;&quot;<\/p>\n<p>postgresql_enable\u8d77\u52d5\u3001postgresql_data\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30b9\u3001\u6700\u5f8c\u306epostgresql_flags\u306e\u4e2d\u306e\u300c-o &#39;-i&#39;\u300d\u3067\u3001\u5916\u90e8\u304b\u3089\u306eip\u30a2\u30c9\u30ec\u30b9\u3092\u53d7\u3051\u4ed8\u3051\u307e\u3059(ODBC\u306e\u5834\u5408\u3082)\u3002<br \/>\n\u3055\u3089\u306b[hoge]\u306e\u306a\u304b\u306b\u3042\u308bpg_hba.conf\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3002<\/p>\n<p style=\"margin-left:40px\">host&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.0.0\/24&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; trust<\/p>\n<p>\u3053\u308c\u3067\u6700\u7d42\u7684\u306bPostgres\u306f\u52d5\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3053\u3053\u3067\u7ba1\u7406\u30c4\u30fc\u30eb\u306epgAdmin3\u3092\u5165\u308c\u307e\u3059\u3002\u3044\u3084\u3001\u5225\u306bWindwos\u304b\u3089\u3084\u3063\u3066\u3082\u3044\u3044\u3093\u3067\u3059\u3051\u3069\u3002<\/p>\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"width:600px\">\n<tbody>\n<tr>\n<td>root@ns2:~ # pkg install pgadmin3-1.18.1_1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3061\u306a\u307f\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u3068\u304d\u306ftar\u5f62\u5f0f\u306b\u3002\u30d7\u30ec\u30fc\u30f3\u3067\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3044\u3084\u30fc\u3001\u3084\u3063\u3071\u308a\u4e88\u7fd2\u306f\u5927\u5207\u3060\u3002\u3053\u3093\u306a\u306b\u30c8\u30e9\u30d6\u30eb\u3042\u3063\u305f\u3068\u306f\u601d\u3044\u3082\u3057\u306a\u304b\u3063\u305f\u3002 \u203b\u4e00\u756a\u5927\u304d\u3044\u306e\u306fSamba4\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u3068\u3053\u308d\u306b\u66f8\u3044\u305f\u3051\u3069\u3001pkg\u3067\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u6240\u5b9a\u306e\u4f4d\u7f6e\u306b\u30bb\u30c3\u30c8\u3055\u308c\u306a\u304b\u3063\u305f\u4e8b\u3002 \u4e00\u5fdc\u30af\u30ea\u30fc\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"close","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-649","post","type-post","status-publish","format-standard","hentry","category-pc"],"_links":{"self":[{"href":"http:\/\/www.bunza.net\/Blog\/index.php?rest_route=\/wp\/v2\/posts\/649","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.bunza.net\/Blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.bunza.net\/Blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.bunza.net\/Blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.bunza.net\/Blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=649"}],"version-history":[{"count":0,"href":"http:\/\/www.bunza.net\/Blog\/index.php?rest_route=\/wp\/v2\/posts\/649\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.bunza.net\/Blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.bunza.net\/Blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=649"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.bunza.net\/Blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}