如何解决Mac Mini M1 安装 Postgresql 12
使用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
我怎样才能让它工作?这是在全新盒子上的首次安装。
解决方法
似乎解决方案(目前)是使用 postgressapp.com 提供的 postgres.app
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。