码迷,mamicode.com
首页 > 数据库 > 详细

postsql

时间:2021-05-24 10:29:11      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:down   postgresq   class   data   emc   file   var   sys   sql   

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

标签:down   postgresq   class   data   emc   file   var   sys   sql   

原文地址:https://www.cnblogs.com/yubs/p/14771369.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!