gpt4 book ai didi

homebrew - 如何让 brew 提供安装后说明?

转载 作者:行者123 更新时间:2023-12-03 18:35:58 25 4
gpt4 key购买 nike

我想看看 brew 给出的启动 postgres 的说明,但是它已经安装了。安装后它显示了这些说明。

在 Mac 上使用 brew 再次查看安装后说明的命令是什么?

最佳答案

命令:

brew info postgresql

给出:
postgresql: stable 9.4.2 (bottled)
https://www.postgresql.org/
Conflicts with: postgres-xc
/usr/local/Cellar/postgresql/9.4.2 (3004 files, 40M) *
Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/postgresql.rb
==> Dependencies
Required: openssl ✔, readline ✔
==> Options
--32-bit
Build 32-bit only
--with-dtrace
Build with DTrace support
--with-python
Build with python support
--without-perl
Build without Perl support
--without-tcl
Build without Tcl support
==> Caveats
If builds of PostgreSQL 9 are failing and you have version 8.x installed,
you may need to remove the previous version first. See:
https://github.com/Homebrew/homebrew/issues/2510

To migrate existing data from a previous major version (pre-9.4) of PostgreSQL, see:
https://www.postgresql.org/docs/9.4/static/upgrading.html

To have launchd start postgresql at login:
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
Then to load postgresql now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
Or, if you don't want/need launchctl, you can just run:
postgres -D /usr/local/var/postgres

关于homebrew - 如何让 brew 提供安装后说明?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30677093/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com