質問編集履歴
3
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -68,21 +68,11 @@
|
|
68
68
|
|
69
69
|
|
70
70
|
|
71
|
-
#Permissionを変更する。
|
71
|
+
#起動の度にPermissionを変更する必要がある・・・。
|
72
72
|
|
73
73
|
$ chmod 700 postgres
|
74
74
|
|
75
|
-
#再び、起動
|
76
75
|
|
77
|
-
waiting for server to start....2019-08-10 18:06:05.000 JST [8457] FATAL: data directory "/Users/usr/Documents/study/postgres" has invalid permissions
|
78
|
-
|
79
|
-
2019-08-10 18:06:05.000 JST [8457] DETAIL: Permissions should be u=rwx (0700) or u=rwx,g=rx (0750).
|
80
|
-
|
81
|
-
stopped waiting
|
82
|
-
|
83
|
-
pg_ctl: could not start server
|
84
|
-
|
85
|
-
Examine the log output.
|
86
76
|
|
87
77
|
#再起動が失敗するpermissionが終了?起動?のたびに変わってしまっている。
|
88
78
|
|
2
インストール/初期化方法の記載。本文の誤りを修正(2回目の起動は失敗する。)
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
postgresql permissionが意図せずに変わってしまう。
|
1
|
+
postgresql permissionが意図せずに変わってしまう。データベース再起動ができない。
|
test
CHANGED
@@ -74,23 +74,17 @@
|
|
74
74
|
|
75
75
|
#再び、起動
|
76
76
|
|
77
|
-
|
77
|
+
waiting for server to start....2019-08-10 18:06:05.000 JST [8457] FATAL: data directory "/Users/usr/Documents/study/postgres" has invalid permissions
|
78
78
|
|
79
|
-
|
79
|
+
2019-08-10 18:06:05.000 JST [8457] DETAIL: Permissions should be u=rwx (0700) or u=rwx,g=rx (0750).
|
80
80
|
|
81
|
-
|
81
|
+
stopped waiting
|
82
82
|
|
83
|
-
|
83
|
+
pg_ctl: could not start server
|
84
84
|
|
85
|
-
|
85
|
+
Examine the log output.
|
86
86
|
|
87
|
-
2019-08-10 14:18:15.318 JST [5438] LOG: database system is ready to accept connections
|
88
|
-
|
89
|
-
done
|
90
|
-
|
91
|
-
server started
|
92
|
-
|
93
|
-
#permissionが終了?起動?のたびに変わってしまっている。
|
87
|
+
#再起動が失敗するpermissionが終了?起動?のたびに変わってしまっている。
|
94
88
|
|
95
89
|
```
|
96
90
|
|
@@ -119,3 +113,21 @@
|
|
119
113
|
drwxr-xr-x 25 usr staff 800 8 10 14:43 postgres
|
120
114
|
|
121
115
|
```
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
インストール方法については以下のコマンドを実行しました
|
120
|
+
|
121
|
+
```bash
|
122
|
+
|
123
|
+
brew install postgresql
|
124
|
+
|
125
|
+
```
|
126
|
+
|
127
|
+
初期設定については以下のようにしました。
|
128
|
+
|
129
|
+
```bash
|
130
|
+
|
131
|
+
initdb postgres
|
132
|
+
|
133
|
+
```
|
1
perimissionの情報を追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -93,3 +93,29 @@
|
|
93
93
|
#permissionが終了?起動?のたびに変わってしまっている。
|
94
94
|
|
95
95
|
```
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
以下は起動前/起動後のpermissionの情報
|
100
|
+
|
101
|
+
```
|
102
|
+
|
103
|
+
$ chmod 700 ./postgres
|
104
|
+
|
105
|
+
$ ls -l
|
106
|
+
|
107
|
+
drwx------ 25 usr staff 800 8 10 14:33 postgres
|
108
|
+
|
109
|
+
#===postgresqlを起動===
|
110
|
+
|
111
|
+
#
|
112
|
+
|
113
|
+
#
|
114
|
+
|
115
|
+
#===postgresqlを終了===
|
116
|
+
|
117
|
+
$ ls -l
|
118
|
+
|
119
|
+
drwxr-xr-x 25 usr staff 800 8 10 14:43 postgres
|
120
|
+
|
121
|
+
```
|