postgresql

1.安装pgsql

    yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-redhat96-9.6-3.noarch.rpm

    yum install postgresql96

    yum install postgresql96-server postgresql96-contrib

    service postgresql-9.6 initdb

    chkconfig postgresql-9.6 on

    service postgresql-9.6 start

2.以posgres用户登录pgsql

    sudo -u postgres psql

3.修改密码

    ALTER USE Rpostgres WITH PASSWORD 'password';

4.配置远程访问

修改/var/lib/pgsql/9.6/data/pg_hba.conf 文件

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容