一、安装psql
yum install postgresql-server postgresql-contrib postgresql-devel postgresql postgresql-libs
service postgresql initdb
systemctl start postgresql
二、配置远程访问
vi /var/lib/pgsql/data/postgresql.conf listen_addresses = ‘*‘
vi /var/lib/pgsql/data/pg_hba.conf host all all 0.0.0.0/0 trust
原文地址:https://www.cnblogs.com/erdanyang/p/11286890.html
时间: 2024-11-01 18:49:51