質問編集履歴
4
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -53,8 +53,8 @@
|
|
53
53
|
$ sudo lsof -i:5432
|
54
54
|
|
55
55
|
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
|
56
|
-
postgres 2097 postgres 4u IPv6
|
56
|
+
postgres 2097 postgres 4u IPv6 hoge 0t0 TCP *:postgresql (LISTEN)
|
57
|
-
postgres 2097 postgres 5u IPv4
|
57
|
+
postgres 2097 postgres 5u IPv4 hoge 0t0 TCP *:postgresql (LISTEN)
|
58
58
|
```
|
59
59
|
|
60
60
|
```zash
|
3
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
docker-composeで下記の設定でpostgresサーバーを立ち上げようとした時に、下記のようなエラーが出ており原因は
|
1
|
+
docker-composeで下記の設定でpostgresサーバーを立ち上げようとした時に、下記のようなエラーが出ており原因は、ポート番号が既に使用されていると出ています。
|
2
|
-
ポート番号が既に使用されていると出ています。
|
3
2
|
使用状況を確認したところ停止はしていますが、使用されてるようでしたのでsudo kill -9 <pid>で削除したのですが、削除しても新しいpidが生成されてportが削除されなくて詰まってしまっています。
|
4
3
|
他に試したことは、dockerのimage/container/volume/networkを全て削除してみましたがダメでした。
|
5
4
|
解決方法わかるかたいましたらご教授いただけたら嬉しいです。
|
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
docker-composeで下記の設定でpostgresサーバーを立ち上げようとした時に、下記のようなエラーが出ており原因は
|
2
2
|
ポート番号が既に使用されていると出ています。
|
3
|
-
使用状況を確認したところ停止はしていますが使用されてるようでしたのでsudo kill -9 <pid>で削除したのですが、削除しても新しいpidが生成されてportが削除されなくて詰まってしまっています。
|
3
|
+
使用状況を確認したところ停止はしていますが、使用されてるようでしたのでsudo kill -9 <pid>で削除したのですが、削除しても新しいpidが生成されてportが削除されなくて詰まってしまっています。
|
4
4
|
他に試したことは、dockerのimage/container/volume/networkを全て削除してみましたがダメでした。
|
5
|
-
解決方法わかるかた
|
5
|
+
解決方法わかるかたいましたらご教授いただけたら嬉しいです。
|
6
6
|
|
7
7
|
```docker-compose
|
8
8
|
version: '3.7'
|
@@ -57,3 +57,26 @@
|
|
57
57
|
postgres 2097 postgres 4u IPv6 0xc66c13b91d9aba43 0t0 TCP *:postgresql (LISTEN)
|
58
58
|
postgres 2097 postgres 5u IPv4 0xc66c13b92b7b1d33 0t0 TCP *:postgresql (LISTEN)
|
59
59
|
```
|
60
|
+
|
61
|
+
```zash
|
62
|
+
$ ps aux | grep postgres
|
63
|
+
postgres 2611 0.0 0.0 5018448 7448 ?? S 5:17PM 0:00.43 /usr/libexec/trustd --agent
|
64
|
+
postgres 2120 0.0 0.0 4888424 1860 ?? Ss 4:29PM 0:00.00 postgres: logical replication launcher
|
65
|
+
postgres 2119 0.0 0.0 4643468 1048 ?? Ss 4:29PM 0:00.10 postgres: stats collector
|
66
|
+
postgres 2118 0.0 0.0 4945768 2200 ?? Ss 4:29PM 0:00.08 postgres: autovacuum launcher
|
67
|
+
postgres 2117 0.0 0.0 4879208 5340 ?? Ss 4:29PM 0:00.05 postgres: walwriter
|
68
|
+
postgres 2116 0.0 0.0 4748136 2372 ?? Ss 4:29PM 0:00.08 postgres: background writer
|
69
|
+
postgres 2115 0.0 0.0 4756328 1240 ?? Ss 4:29PM 0:00.00 postgres: checkpointer
|
70
|
+
postgres 2108 0.0 0.0 4602508 960 ?? Ss 4:29PM 0:00.00 postgres: logger
|
71
|
+
postgres 2097 0.0 0.0 4749452 15680 ?? Ss 4:29PM 0:00.07 /Library/PostgreSQL/12/bin/postmaster -D/Library/PostgreSQL/12/data
|
72
|
+
postgres 1344 0.0 0.0 5270900 6292 ?? S 4:14PM 0:00.05 /usr/libexec/containermanagerd --runmode=agent --bundle-container-mode=global --bundle-container-owner=_appinstalld --system-container-mode=none
|
73
|
+
postgres 1340 0.0 0.0 5158960 11716 ?? S 4:14PM 0:00.09 /usr/libexec/secd
|
74
|
+
postgres 1338 0.0 0.0 5414788 8772 ?? S 4:14PM 0:00.08 /usr/libexec/lsd
|
75
|
+
postgres 1336 0.0 0.0 5152348 7332 ?? S 4:14PM 0:00.05 /usr/libexec/pkd
|
76
|
+
postgres 1335 0.0 0.0 4427440 1456 ?? S 4:14PM 0:00.02 /usr/sbin/cfprefsd agent
|
77
|
+
postgres 1334 0.0 0.0 6079736 9204 ?? SN 4:14PM 0:02.35 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdbulkimport -s mdworker-bundle -c MDSImporterBundleFinder -m com.apple.metadata.mdbulkimport
|
78
|
+
postgres 1302 0.0 0.0 4891772 3260 ?? S 4:13PM 0:00.05 /usr/sbin/distnoted agent
|
79
|
+
nomin 3897 0.0 0.0 4418912 840 s002 S+ 6:44PM 0:00.00 grep postgres
|
80
|
+
|
81
|
+
```
|
82
|
+
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,6 +38,8 @@
|
|
38
38
|
- postgres
|
39
39
|
```
|
40
40
|
```error
|
41
|
+
$ docker-compose up -d
|
42
|
+
|
41
43
|
Creating postgres ... error
|
42
44
|
|
43
45
|
ERROR: for postgres Cannot start service postgres: Ports are not available: listen tcp 0.0.0.0:5432: bind: address already in use
|