Java教程

postsql

本文主要是介绍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的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!