当前位置:Gxlcms > 数据库问题 > linux下postgresql的连接数配置

linux下postgresql的连接数配置

时间:2021-07-01 10:21:17 帮助过:37人阅读

1、查询当前连接数:

select count(*) from pg_stat_activity;

 2、查询最大连接数

show max_connections;

3、修改最大连接数

SHOW config_file:查看postgresql.conf配置文件位置

然后修改配置文件中max_connections=1024

4、重启服务

service postgresql restart

或者:pg_ctl restart

 

linux下postgresql的连接数配置

标签:大连   位置   bsp   最大连接数   postgres   count   sele   res   linux   

人气教程排行