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

linux下postgresql的连接数配置

时间:2018-10-27 01:28:47      阅读:466      评论:0      收藏:0      [点我收藏+]

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

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   

原文地址:https://www.cnblogs.com/tiandi/p/9859418.html

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