尝试使用postgres运行rails时,出现以下错误:
+--------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------+-------------+------+-----+---------+-------+
| id | int(11) | YES | | NULL | |
| name | varchar(30) | YES | | NULL | |
| points | int(11) | YES | | NULL | |
+--------+-------------+------+-----+---------+-------+
在终端中运行psql:
could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
正在运行
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
我使用自制软件安装了postres,所以尝试:
ps auxw | grep post
=> will 28386 0.0 0.0 2432804 776 s001 S+ 6:27pm 0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn post
我该如何调试?