postsql

https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm

 yum install postgresql13-contrib postgresql13-server -y


 /usr/pgsql-13/bin/postgresql-13-setup initdb

 vi /var/lib/pgsql/13/data/postgresql.conf

 vi /var/lib/pgsql/13/data/pg_hba.conf

sudo systemctl start postgresql-13

sudo systemctl enable postgresql-13.service

sudo su - postgres

alter user postgres with password ‘password‘;

SHOW config_file;

 vi /var/lib/pgsql/13/data/postgresql.conf;

log_min_duration_statement = 100

 service postgresql-13 reload

  

postsql

上一篇:【转载】错误 CS0016: 未能写入输出文件“c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/.........dll”--“拒绝访问。 ”


下一篇:docker-compose部署 Mysql 8.0 主从模式,基于GTID