yum安装postgresql
1、Install the repository RPM: yum install https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-2.noarch.rpm 2、Install the client packages: yum install postgresql95 3、Optionally install the server packages: yum install postgresql95-server 4、Optionally initialize the database and enable automatic start: /usr/pgsql-9.5/bin/postgresql95-setup initdb 5、Test: su - postgres $ psql $l CREATE DATABASE myDb; CREATE USER mytest CREATEDB LOGIN PASSWORD 'mytest'; GRANT ALL ON DATABASE myDb TO mytest; (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |