我正在尝试从终端运行 postgres。我缺少什么?
$psql
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
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"?
最佳答案
看起来您正在使用 pg_wrapper
的系统像 Ubuntu 或 Debian,并且你的语言环境设置被搞乱了。这与 PostgreSQL 无关,这是系统配置问题。 Perl 只是在提示它。
运行不带参数的perl
,你会看到同样的提示。
假设您使用的是 Ubuntu,因为您没有另外说明,请参阅:
关于postgresql - 使用 psql 登录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12444904/