允许我的noobishness,我正在学习如何使用Linux Openshift。在下一本书的时候,我尝试从命令行[Bash]在线连接到服务器。我跑 rhc port-forward
,它显示:在Red Hat操作系统上连接到PostgreSQL时出错
Checking available ports ... done
Forwarding ports ...
To connect to a service running on OpenShift, use the Local address
Service Local OpenShift
---------- -------------- ---- ---------------
httpd 127.0.0.1:8080 => 127.7.74.1:8080
postgresql 127.0.0.1:5432 => 127.7.74.2:5432
Press CTRL-C to terminate port forwarding
书上说我应该运行 psql -h 127.0.0.1 -p 5433 -U username password
现在为什么庆典抱怨任何时候我运行命令,
psql -h 127.0.0.1 ...
它说,PSQL命令不找到。
Git?在源代码控制? psit与git有什么关系?你真的应该发布整个命令。 –
这是我在git中编写的全部命令。导航到我的工作文件夹后,我写道:psql -h 127.0.0.1 -p 5433 -U myUsername myAppName。我得到一个错误,提示sh.exe“找不到psql命令 –
不,你不用git写它,检查git是什么,你可能是指MINGW,检查你使用的是什么工具,它们是什么。 –