He instalado postgresql@14 vía brew en mi Mac M2.
Ahora, cuando hago brew services
Obtengo este resultado
postgresql@14 error 256 headmaster ~/Library/LaunchAgents/homebrew.mxcl.postgresql@14.plist
¿Puede alguien ayudarme y decirme cómo comprobar dónde está el error real?
UPD1
Basado en el error de código 256 encontró algo de información con el comando tail -f /opt/homebrew/var/log/postgresql@14.log
2022-11-26 12:05:14.229 +03 [2139] LOG: starting PostgreSQL 14.6 (Homebrew) on aarch64-apple-darwin22.1.0, compiled by Apple clang version 14.0.0 (clang-1400.0.29.202), 64-bit
2022-11-26 12:05:14.231 +03 [2139] LOG: could not bind IPv6 address "::1": Address already in use
2022-11-26 12:05:14.231 +03 [2139] HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2022-11-26 12:05:14.231 +03 [2139] LOG: could not bind IPv4 address "127.0.0.1": Address already in use
2022-11-26 12:05:14.231 +03 [2139] HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2022-11-26 12:05:14.231 +03 [2139] WARNING: could not create listen socket for "localhost"
2022-11-26 12:05:14.231 +03 [2139] FATAL: could not create any TCP/IP sockets
2022-11-26 12:05:14.232 +03 [2139] LOG: database system is shut down
UPD2
basándome en el registro de errores he comprobado mi etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
# Added by Docker Desktop
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section
No estoy seguro de si debo cambiar algo aquí