av激情亚洲男人的天堂国语,日韩欧美精品一中文字幕,无码av一区二区三区无码,国产又色又爽又刺激的a片,国产又色又爽又刺激的a片

安裝編譯postgresql與pgagent的相關(guān)操作

編譯postgresqlpgagent的相關(guān)操作是本文我們主要要介紹的內(nèi)容,接下來就讓我們一起來了解一下這部分內(nèi)容吧。

成都創(chuàng)新互聯(lián)專注于企業(yè)成都全網(wǎng)營銷、網(wǎng)站重做改版、金川網(wǎng)站定制設(shè)計(jì)、自適應(yīng)品牌網(wǎng)站建設(shè)、H5網(wǎng)站設(shè)計(jì)、商城網(wǎng)站建設(shè)、集團(tuán)公司官網(wǎng)建設(shè)、成都外貿(mào)網(wǎng)站建設(shè)、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁設(shè)計(jì)等建站業(yè)務(wù),價(jià)格優(yōu)惠性價(jià)比高,為金川等各大城市提供網(wǎng)站開發(fā)制作服務(wù)。

安裝postgresql

安裝環(huán)境centos 5.5 32 位

下載源代碼

 
 
 
  1. wget ftp://ftp3.cn.postgresql.org/pub/mirrors/pgsql/source/v9.1rc1/postgresql-9.1rc1.tar.gz

解壓

 
 
 
  1. tar -zxvf postgresql-9.1rc1.tar.gz

安裝必備庫

 
 
 
  1. yum install zlib-devel

新建用戶

 
 
 
  1. groupadd pgsql
  2. useradd pgsql -g pgsql

編譯源代碼

 
 
 
  1. make 
  2. make install

設(shè)置環(huán)境變量,并給用戶pgsql賦權(quán)

 
 
 
  1. chown -R pgsql:pgsql /usr/local/pgsql

初始化數(shù)據(jù)庫

以pgsql登錄執(zhí)行

 
 
 
  1. /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data

更改listen_addresses 參數(shù),遠(yuǎn)程連接

 
 
 
  1. vi /usr/local/pgsql/data/postgresql.conf 

去掉 listen_addresses 前面的注釋并設(shè)置參數(shù)為 *

去掉 port 前面的注釋

 
 
 
  1. vi /usr/local/pgsql/data/pg_hba.conf 

添加

 
 
 
  1. host    all             all             192.168.1.0/24          trust

設(shè)置自動(dòng)啟動(dòng)腳本

在源代碼下

 
 
 
  1. cp src/postgresql-9.0.1/contrib/start-scripts/linux /etc/init.d/postgresql 
  2. chmod +x  /etc/init.d/postgresql

啟動(dòng)數(shù)據(jù)庫

 
 
 
  1. service postgresql start
  2. service postgresql stop
  3. service postgresql restart
  4. ./bin/postgres -D /usr/local/pgsql/data or ./bin/pg_ctl -D /usr/local/pgsql/data -l logfile start

禁止 iptables (客戶端5432 端口需要打開)

 
 
 
  1. service iptables stop

用pgsql用戶登錄(注意用戶名為創(chuàng)建該數(shù)據(jù)庫的操作系統(tǒng)的用戶名,密碼為該操作系統(tǒng)的密碼)

安裝pgAgent

安裝

 
 
 
  1. cmake wget http://www.cmake.org/files/v2.8/cmake-2.8.5.tar.gz
  2. tar -zxvf cmake-2.8.5.tar.gz
  3. cd /root/src/cmake-2.8.5
  4. ./bootstrap
  5. make 
  6. make install

安裝 wxWidgets(走了很多彎路,實(shí)際上只需要下載 wxGTK-2.8.12.tar.gz 就可以完成任務(wù))

 
 
 
  1. wget http://nchc.dl.sourceforge.net/project/wxwindows/2.8.12/wxGTK-2.8.12.tar.gz

注意編譯的時(shí)候一定要支持unicode 與 靜態(tài)編譯

 
 
 
  1. ./configure   --enable-shared=no --enable-unicode=yes
  2. make
  3. make install
  4. tar -zxvf pgAgent-3.0.1-Source.tar.gz
  5. cmake ./
  6. make
  7. make install

成功后用pgsql 用戶登錄數(shù)據(jù)庫執(zhí)行

 
 
 
  1. /usr/local/share/pgagent.sql
  2. /usr/local/share/pgagent_upgrade.sql

以上就是安裝編譯postgresql與pgagent的一系列過程的全部內(nèi)容,本文我們就介紹到這里了,希望本次的介紹能夠?qū)δ兴斋@!


網(wǎng)站名稱:安裝編譯postgresql與pgagent的相關(guān)操作
標(biāo)題路徑:http://uogjgqi.cn/article/cdcjgpj.html
掃二維碼與項(xiàng)目經(jīng)理溝通

我們在微信上24小時(shí)期待你的聲音

解答本文疑問/技術(shù)咨詢/運(yùn)營咨詢/技術(shù)建議/互聯(lián)網(wǎng)交流