Mac Mini M1 安装 Postgresql 12

时间:2021-03-10 11:25:53

标签: macos-big-sur postgresql-12 apple-m1

使用homebrew安装postgresql@12,“启动”后无法继续。

~ ❯ brew services start postgresql@12                                                                                                             21s 06:05:13
==> Successfully started `postgresql@12` (label: homebrew.mxcl.postgresql@12)

~ ❯ brew services list                     
Name          Status  User Plist
nginx         error   root /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
pgbouncer     stopped
postgresql@12 error   rich /Users/rich/Library/LaunchAgents/homebrew.mxcl.postgresql@12.plist
unbound       stopped

~ ❯ psql -U postgres
zsh: command not found: psql

~ ❯ sudo su - postgres
su: unknown login: postgres

~ ❯ launchctl load ~/Library/LaunchAgents
Load failed: 5: Input/output error

~ ❯ nmap localhost
Starting Nmap 7.91 ( https://nmap.org ) at 2021-03-10 06:14 EST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000054s latency).
Not shown: 994 closed ports
PORT      STATE SERVICE
22/tcp    open  ssh
80/tcp    open  http
443/tcp   open  https
445/tcp   open  microsoft-ds
5900/tcp  open  vnc
49159/tcp open  unknown

Nmap done: 1 IP address (1 host up) scanned in 0.09 seconds

我怎样才能让它工作?这是在全新盒子上的首次安装。

1 个答案:

答案 0 :(得分:0)

似乎解决方案(目前)是使用 postgressapp.com 提供的 postgres.app