Ubuntu 14.04 server 安装postgresql后不能启动问题
问题描述:
使用下面命令安装postgresql后,启动postgresql失败
sudo apt-get install postgresql postgresql-contrib service postgresql start
www#gaodaima.com来源gao!daima.com搞$代!码网搞代码
错误:
* No PostgreSQL clusters exist; see "man pg_createcluster"
解决办法:
sudo locale-gen enUS.UTF-8
或
export LC_ALL=en_US.UTF-8
然后再使用下面命令启动:
service postgresql start
Python学习网,大量的免费PostgreSQL入门教程,欢迎在线学习!
来源:搞代码网:原文地址:https://www.gaodaima.com