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
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
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。