unbuntu 16.04 安装 postgresql 10

添加postgreql源

$ wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | sudo apt-key add -
$ sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'

安装 postgresql

$ sudo apt-get update
$ sudo apt-get install postgresql postgresql-contrib libpq-dev

添加用户

$ sudo -u postgres createuser --sup...

ubuntu修改locale为中文

修改: /etc/default/locale

LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh:en_US:en"

修改:/var/lib/locales/supported.d/local

en_US.UTF-8 UTF-8
zh_CN.UTF-8 UTF-8

sudo locale-gen

鲁ICP备13007872号-1