最新版postgresql+pgboucer安裝

來源:互聯網
上載者:User

標籤:

安裝postgresql:

wget https://pgbouncer.github.io/downloads/files/1.7.2/pgbouncer-1.7.2.tar.gzwget http://get.enterprisedb.com/postgresql/postgresql-9.5.1-1-linux-x64.runwget https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gztar zxvf libevent-2.0.22-stable.tar.gzcd libevent-2.0.22-stable./configure --prefix=/alidata/local/libeventmakemake installcd ..tar zxvf pgbouncer-1.7.2.tar.gzcd pgbouncer-1.7.2./configure --prefix=/alidata/local/pgbouncer/ --with-libevent=/alidata/local/libevent/make make installcd ..chmod 777 postgresql-9.5.1-1-linux-x64.run./postgresql-9.5.1-1-linux-x64.runsudo chown -R postgres.postgres /alidata/pgsqlsudo chown -R postgres.postgres /alidata/local/pgbouncersu - postgrescp .bash_profile /alidata/pgsqlcp .bashrc  /alidata/pgsqlsu - postgresexport PGHOME=/alidata/pgsqlexport PATH=$PGHOME/bin:$PATHexport PGDATA=$PGHOME/dataexport LD_LIBRARY_PATH=$PGHOME/libexport LD_LIBRARY_PATH=/usr/local/libevent/lib:$LD_LIBRARY_PATH[ -z "`cat /alidata/pgsql/data/pg_hba.conf | grep ‘fs.file-max‘`" ] && cat >> /alidata/pgsql/data/pg_hba.conf << EOFhost  all   all   192.170.206.0/24   md5EOFsu postgres./pg_ctl -D /alidata/pgsql/data/ reload#chkconfig --list postgresql-9.0  #chkconfig --list postgresql-9.0  #netstat -ano | grep 5432 #echo "SU_WHEEL_ONLY yes" >> /etc/login.defs#more /opt/PostgreSQL/9.0/data/pg_log/startup.log #rm -rf /alidata/pgsql#rm -rf postgres-reg.ini #檢查服務狀態:service --status-allservice --status-all | grep ntpdservice --status-all | lessservice httpd status#列出所有服務啟動層級:chkconfig --list#列出服務和他們對應的連接埠:netstat -tulpnchkconfig –list #查看服務命令#chkconfig --add postgresql#vim /alidata/pgsql/9.5/data/postgresql.conf       (監聽更改為*)#listen_addresses = ‘*‘#/usr/local/pgbouncer/bin/pgbouncer -d /usr/local/pgbouncer/conf/pgbouncer.ini#/alidata/local/pgbouncer/bin/pgbouncer -d /alidata/local/pgbouncer/conf/pgbouncer.ini

 

安裝pgbouncer

:http://pgfoundry.org/frs/download.php/2987/pgbouncer-1.4.1.tgz

安裝

tar -zxvf pgbouncer-1.7.2.tgz

cd pgbouncer-1.7.2

./configure --prefix=/usr/local/pg_bouncer

make

make install

最新版postgresql+pgboucer安裝

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.