[{"data":1,"prerenderedAt":13,"buildId":14},["ShallowReactive",2],{"$f1fey4xzm92txr":3},{"rec_no":4,"title":5,"category":6,"dist":7,"update":10,"contents":11,"description":12},121,"PostgreXのインストール","osx",[8,9],"MacOS 10.4","10.5","2007-10-28","インストール\u002F設定するもの：PostgreX\u003Cbr>\n\u003Cbr>\nあらかじめPostgreの管理者「postgres」を作成しておきます。\u003Cbr>\n\u003Cbr>\n\u003Ca href=http:\u002F\u002Fwww.magic3.org\u002Fpostgrex\u002F>http:\u002F\u002Fwww.magic3.org\u002Fpostgrex\u002F\u003C\u002Fa>から機種に対応したパッケージをダウンロード、インストールします。\u003Cbr>\n\u003Cbr>\nターミナルを開き、ユーザー：postgresになって以下のコマンドを実行します。\u003Cbr>\n$\u003Cfont color=red>su postgres\u003C\u002Ffont>\u003Cbr>\n$\u003Cfont color=red>cd\u003C\u002Ffont>\u003Cbr>\n$\u003Cfont color=red>mkdir db\u003C\u002Ffont>\u003Cbr>\n$\u003Cfont color=red>\u002Fusr\u002Flocal\u002Fpgsql\u002Fbin\u002Finitdb -E EUC_JP -D .\u002Fdb\u003C\u002Ffont>\u003Cbr>\n今回は、postgresのホームディレクトリ何にdbフォルダを作成し、そこをデータベースのフォルダとします。\u003Cbr>\n\u003Cbr>\nPostgreSQLを起動します。\u003Cbr>\n$\u003Cfont color=red>su postgres\u003C\u002Ffont>\u003Cbr>\n$\u003Cfont color=red>cd\u003C\u002Ffont>\u003Cbr>\n$\u003Cfont color=red>\u002Fusr\u002Flocal\u002Fpgsql\u002Fbin\u002Fpg_ctl -D .\u002Fdb start\u003C\u002Ffont>\u003Cbr>\n\u003Cbr>\npostgreSQLユーザーにwwwとpgsqlを追加します。\u003Cbr>\n$\u003Cfont color=red>su postgres\u003C\u002Ffont>\u003Cbr>\n$\u003Cfont color=red>\u002Fusr\u002Flocal\u002Fpgsql\u002Fbin\u002Fcreateuser www\u003C\u002Ffont>\u003Cbr>\n$\u003Cfont color=red>\u002Fusr\u002Flocal\u002Fpgsql\u002Fbin\u002Fcreateuser pgsql\u003C\u002Ffont>\u003Cbr>\n\u003Cbr>\nwwwは標準でインストール済みのapache用、pgsqlはいままでLinuxでpgsqlでやってきたので同じように扱えるようにするためです。\u003Cbr>\n\u003Cbr>\n","インストール\u002F設定するもの：PostgreX あらかじめPostgreの管理者「postgres」を作成しておきます。 http:\u002F\u002Fwww.magic3.org\u002Fpostgrex\u002F から機種に対応したパッケージをダウンロード、インストール…",1796133151421,"7dd78391-7a35-4632-b3ec-a057cb343e55"]