postgres in vagrant(ubuntu14.04)

╄→гoц情女王★ 提交于 2019-11-30 20:24:18

Add the following lines to shell startup file

LANGUAGE=en_US.UTF-8
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8

And then run (with root privileges)

locale-gen en_US.UTF-8
dpkg-reconfigure locales

you can solve this issue logging in the ubuntu machine and reconfiguring locales with the following command:

dpkg-reconfigure locales

and choose the locale you want.

After solving locale issue, you probably want to initialize the cluster and structure of postgres using:

/etc/init.d/postgresql start

You should after that, configure it properly. I'm using version 9.3 of postgres, so the path of the configuration is

/etc/postgresql/9.3/main

Cheers

LEslie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!