$brew install postgresql をしたのち$initdb -D /usr/local/var/postgresをしてから $postgres -D /usr/local/var/postgresでサーバーを立ち上げようとしても
local $ postgres -D /usr/local/var/postgres
2018-08-06 17:36:56.523 +09 [18210] LOG: could not bind IPv6 address "::1": Address already in use
2018-08-06 17:36:56.523 +09 [18210] HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2018-08-06 17:36:56.523 +09 [18210] LOG: could not bind IPv4 address "127.0.0.1": Address already in use
2018-08-06 17:36:56.523 +09 [18210] HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2018-08-06 17:36:56.523 +09 [18210] WARNING: could not create listen socket for "localhost"
2018-08-06 17:36:56.523 +09 [18210] FATAL: could not create any TCP/IP sockets
2018-08-06 17:36:56.524 +09 [18210] LOG: database system is shut down
このようにエラーが出てしまいます。
また、$createuser -s -P postgresをしても、デフォルトのパスワード(デフォルトのユーザーはじぶんのmacの名前)がわからず、できません。どなたかご教授願います。
考えられる原因としては、以前にbrew以外からpostgresqlをインストールした時のプロセスがのこっていたりするのかなと思っています。(アンインストールはしました)
mac high sierra 10.13.6で postgresql 10.4です
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。