質問編集履歴
2
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,6 +15,8 @@
|
|
15
15
|
なお、データの格納先は変更せず、PGDATA=/var/lia/pgsql/9.4/data となります。
|
16
16
|
|
17
17
|
|
18
|
+
|
19
|
+
下記はそれぞれでinitdbコマンドを実行したときの結果になります。
|
18
20
|
|
19
21
|
-------------------------------
|
20
22
|
|
1
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,17 +20,17 @@
|
|
20
20
|
|
21
21
|
※rootユーザーで実行する場合
|
22
22
|
|
23
|
-
# service postgresql-9.4 initdb
|
23
|
+
{ # service postgresql-9.4 initdb
|
24
24
|
|
25
|
-
データベースを初期化中: [ OK ]
|
25
|
+
データベースを初期化中: [ OK ] }
|
26
26
|
|
27
27
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
-
※postgres
|
31
|
+
※postgresユーザで実行する場合
|
32
32
|
|
33
|
-
# su - postgres
|
33
|
+
{ # su - postgres
|
34
34
|
|
35
35
|
-bash-4.1$ /usr/pgsql-9.4/bin/initdb
|
36
36
|
|
@@ -120,7 +120,7 @@
|
|
120
120
|
|
121
121
|
|
122
122
|
|
123
|
-
|
123
|
+
}
|
124
124
|
|
125
125
|
--------------------------------
|
126
126
|
|