【发布时间】:2016-12-01 08:19:09
【问题描述】:
Ubuntu 14 我在远程服务器(digitalocean)上安装了 postgresql 服务器。
运行命令 psql 并显示错误:
postgres@ubuntu-512mb-fra1-01:/home/deploy$ psql
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_PAPER = "be_BY.UTF-8",
LC_ADDRESS = "be_BY.UTF-8",
LC_MONETARY = "be_BY.UTF-8",
LC_NUMERIC = "be_BY.UTF-8",
LC_TELEPHONE = "be_BY.UTF-8",
LC_IDENTIFICATION = "be_BY.UTF-8",
LC_MEASUREMENT = "be_BY.UTF-8",
LC_TIME = "be_BY.UTF-8",
LC_NAME = "be_BY.UTF-8",
LANG = "en_US.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"?
我想重新加载postgresql服务器,运行命令service postgresql start --force
* No PostgreSQL clusters exist; see "man pg_createcluster"
我认为语言环境设置有问题。但是如何解决这个错误呢?
【问题讨论】:
-
locale 只是一个警告——它不会阻止
psql连接。pg_lsclusters显示了什么?..
标签: postgresql ubuntu ubuntu-14.04 digital-ocean