标签:pre arc conf red mct 安装源 res local oca
yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
yum install postgresql12-contrib postgresql12-server –y
/usr/pgsql-12/bin/postgresql-12-setup initdb
su postgres
psql
ALTER USER postgres WITH PASSWORD ‘postgres‘;
\q
vi /var/lib/pgsql/12/data/pg_hba.conf
local all all md5
host all all 0.0.0.0/0 md5
vi /var/lib/pgsql/12/data/postgresql.conf
listen_addresses = ‘*‘
systemctl restart postgresql-12
标签:pre arc conf red mct 安装源 res local oca
原文地址:https://www.cnblogs.com/MartyCode/p/14149354.html