作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试在 ubuntu 上安装 postgresql。我按照 http://hocuspokus.net/2008/05/install-postgresql-on-ubuntu-804/ 中的步骤操作.
然后输入命令:
psql template1
我收到以下错误:
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
最佳答案
我的问题是我之前安装了 9.1 版,而 9.1 仍在占用默认端口 5432。我可以使用以下命令找到它:
root@labs:/home/caleb# /etc/init.d/postgresql status
9.1/main (port 5432): down
9.2/main (port 5433): online
所以我能够看到我的 9.2 数据库正在端口 5433 上运行。所以要连接,我必须明确指定端口 5433:
psql -p 5433
关于postgresql - 无法连接到 ubuntu 中的 postgres,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8293635/
我正在开发一个 voip 调用应用程序。我需要做的是在接到来电时将 Activity 带到前台。我在应用程序中使用 Twilio,并在收到推送消息时开始调用。 问题是我试图在接到任何电话时显示 Act
我是一名优秀的程序员,十分优秀!