bash 从命令行启动 PostgreSQL pgAdmin3?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20232868/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Launch PostgreSQL pgAdmin3 from command line?
提问by Ray
OK, I feel stupid asking this but is there a way to launch pgAdmin3 from the Unix command line? I installed pgAdmin from pgadmin.org but I don't know where it was installed. I've searched my /usr tree for pgadmin* and pgAdmin* to no avail. I've also searched for the answer on the Internet but didn't find an answer. The pgAdmin Command Line Parametersdoc page discusses parameters you can use to launch pgAdmin but it doesn't discuss the executable itself.
好吧,我问这个问题很愚蠢,但是有没有办法从 Unix 命令行启动 pgAdmin3?我从 pgadmin.org 安装了 pgAdmin,但我不知道它的安装位置。我已经在我的 /usr 树中搜索了 pgadmin* 和 pgAdmin* 无济于事。我也在互联网上搜索了答案,但没有找到答案。pgAdmin命令行参数文档页面讨论了可用于启动 pgAdmin 的参数,但不讨论可执行文件本身。
Thanks.
谢谢。
回答by profimedica
Graphical utility is optional.
图形实用程序是可选的。
The link you are using describe only the graphical utility.
您使用的链接仅描述图形实用程序。
On linux you can use the psqlcommand line parameters from this link:
在 linux 上,您可以使用此链接中的psql命令行参数:
https://www.postgresql.org/docs/9.2/static/app-psql.html
https://www.postgresql.org/docs/9.2/static/app-psql.html
This link might be also usefull.
此链接可能也很有用。
回答by konglee28
For pgadmin4 for mac, you can find the location of psql binary.
对于 mac 的 pgadmin4,您可以找到 psql 二进制文件的位置。
sudo find / -name psql
In my case, I find it at:
就我而言,我在以下位置找到它:
/Applications/pgAdmin\ 4.app/Contents/SharedSupport/
Then you can build symbolic link from /usr/local/bin
the above path.
然后您可以从/usr/local/bin
上述路径构建符号链接。
ln -s /Applications/pgAdmin\ 4.app/Contents/SharedSupport/psql /usr/local/bin/psql
Then you can run psql
anywhere in your terminal.
然后你可以psql
在终端的任何地方运行。
回答by wildplasser
Like any program, you can launch it by calling its name:
像任何程序一样,您可以通过调用它的名称来启动它:
pgadmin3 &
If it is not in one of the directories in your search path $PATH
, you should use the complete pathname:
如果它不在搜索路径中的目录之一中$PATH
,则应使用完整的路径名:
/path/to/the/program/pgadmin3 &