現在、 postgreSQLのインストールをbrewにて行いました。
しかしながら、起動がうまくできないといった不具合が発生しています。
以前、少しだけ同一MacOS試した時は起動、接続がすんなりできたのですが、、、(postgreのversionは違ったかと思います。)
環境
OS:Mac Mojank 10.14.5
postgreSQL version : postgres (PostgreSQL) 11.4
実行したコマンド
bash
1$ brew install postgresql #brew にて postgresqlをインストール 2#ファイルの移動、試用ディレクトリの作成 3$ cd Documents 4$ mkdir study 5$ cd study 6$ mkdir postgres 7#初期化 8$ initdb postgres 9The files belonging to this database system will be owned by user "user". 10This user must also own the server process. 11 12The database cluster will be initialized with locale "ja_JP.UTF-8". 13The default database encoding has accordingly been set to "UTF8". 14initdb: could not find suitable text search configuration for locale "ja_JP.UTF-8" 15The default text search configuration will be set to "simple". 16 17Data page checksums are disabled. 18 19creating directory postgres ... ok 20creating subdirectories ... ok 21selecting default max_connections ... 100 22selecting default shared_buffers ... 128MB 23selecting default timezone ... Asia/Tokyo 24selecting dynamic shared memory implementation ... posix 25creating configuration files ... ok 26running bootstrap script ... ok 27performing post-bootstrap initialization ... ok 28syncing data to disk ... ok 29 30WARNING: enabling "trust" authentication for local connections 31You can change this by editing pg_hba.conf or using the option -A, or 32--auth-local and --auth-host, the next time you run initdb. 33 34Success. You can now start the database server using: 35 36 pg_ctl -D postgres -l logfile start 37 38#起動 39$ pg_ctl -D postgres -l logfile start 40waiting for server to start.... stopped waiting #スタートできず。.. 41pg_ctl: could not start server 42Examine the log output. 43 44#こちらの方法でも検証... 45$ postgres -D postgres 462019-08-10 12:14:04.505 JST [2576] FATAL: data directory "/Users/user/Documents/Study/postgres" has invalid permissions 472019-08-10 12:14:04.505 JST [2576] DETAIL: Permissions should be u=rwx (0700) or u=rwx,g=rx (0750). 48#だめ・・・ 49$ pg_ctl status -D postgres 50pg_ctl: no server running 51
エラーログのこの部分もよくわからないため、解決策が全くわかりません・・・
どなたか助けていただけるとありがたいです。
bash
12019-08-10 12:14:04.505 JST [2576] DETAIL: Permissions should be u=rwx (0700) or u=rwx,g=rx (0750). 2コード
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/08/10 04:23
2019/08/10 04:24 編集
2019/08/10 04:59 編集
2019/08/10 04:37
2019/08/10 04:49
2019/08/10 04:52
2019/08/10 05:03
2019/08/10 05:10
2019/08/10 05:15