Install PostgreSQL 10 on Debian 9

安装Postgresql 10

$ 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/ stretch-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
$ sudo apt-get update
$ sudo apt-get install postgresql postgresql-contrib

测试连接Postgresql

$ sudo su - postgres
$ psql
postgres-# \conninfo
postgres-# \q
    原文作者:龜山島
    原文地址: https://www.jianshu.com/p/fd952ba478ca
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞