自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

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

數(shù)據(jù)庫 其他數(shù)據(jù)庫 PostgreSQL
本文我們主要介紹了編譯編譯postgresql與pgagent的過程的一系列操作,希望能夠?qū)δ兴鶐椭?/div>

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

安裝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è)置自動啟動腳本

在源代碼下

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

 

啟動數(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 

 

注意編譯的時候一定要支持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ū)δ兴斋@!

【編輯推薦】

  1. Oracle數(shù)據(jù)庫PL/SQL快捷鍵設(shè)置詳解
  2. Oracle數(shù)據(jù)庫學(xué)習(xí)筆記之表的聯(lián)合查詢
  3. 一個Oracle數(shù)據(jù)庫執(zhí)行存儲過程的錯誤解決
  4. Oracle數(shù)據(jù)庫日期范圍搜索的兩種方法簡介
  5. Oracle數(shù)據(jù)庫RMAN恢復(fù)之?dāng)?shù)據(jù)文件的恢復(fù)詳解
責(zé)任編輯:趙鵬 來源: CSDN博客
相關(guān)推薦

2011-03-02 17:49:20

Proftpd安裝

2010-01-13 18:03:32

CentOS編譯安裝

2010-01-14 14:23:47

2010-02-06 14:19:06

Linux MySQL

2011-03-08 11:28:15

proftpd

2011-02-25 10:16:55

ubuntuproftp安裝

2010-03-29 17:17:51

Nginx Resin

2010-01-11 10:15:47

wine安裝

2010-02-22 16:09:18

CentOS安裝

2010-03-22 10:47:17

Python常用模塊I

2009-07-10 16:29:32

Swing組件

2011-01-14 16:51:44

Linux內(nèi)核

2010-01-15 13:58:29

CentOS系統(tǒng)

2023-01-10 08:04:31

2023-03-17 23:08:36

PostgreSQL數(shù)據(jù)庫

2014-01-02 10:19:54

PostgreSQL安裝

2010-01-13 10:14:45

2011-03-03 15:54:54

Vsftpd安裝編譯

2010-03-19 11:04:20

python模塊

2009-12-28 15:00:21

ADO操作
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號