Recent Comments

This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

2012年5月18日 星期五

postgresql agent設定

以下執行方式是linux系統的設定方式 安裝pgagent 於centos linux yum install pgagent_91 在執行psql指令時要用postgres帳號做操作 登入帳號 su -l postgres 為資料庫安裝pgagent,這一步要注意,要確定將pgagent.sql安裝到正確的資料庫, 安裝pgagent到資料庫postgres psql < /usr/share/pgagent_91-3.0.1/pgagent.sql 安裝pgagent到資料庫n5_data psql -d n5_data < /usr/share/pgagent_91-3.0.1/pgagent.sql pgagent.sql執行內容,會在該資料庫中建立所需要的資料表,建好後用PgAdminIII中的catalogs->pgAgent->Tables中看到 -bash-4.1$ psql -d n5_data < /usr/share/pgagent_91-3.0.1/pgagent.sql Password: BEGIN CREATE SCHEMA COMMENT NOTICE:...

2012年5月4日 星期五

postgresql install pgagent工作排程

yum install pgagent_91 su -l postgres psql < /usr/share/pgagent_91-3.0.1/pgagent.sql 在PgAdminIII下就會出現Job的功...

postgresql 備份和還原

備份 pg_dump dbname | gzip > filename.gz 還原前先建立 tablespace 資料庫使用者 資料庫 還原 gunzip -c filename.gz | psql dbn...

vsftpd 防火牆設定

vim /etc/sysconfig/iptables-con 將 IPTABLES_MODULES="" 改成 IPTABLES_MODULES="ip_nat_ftp ip_conntrack_ftp" vim /etc/sysconfig/iptables 加入 -A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 20 -j ACCEPT 重新啟動iptables service iptables restart selinux setsebool -P ftp_home_dir=...

2012年5月3日 星期四

centos 關 ping

vim /etc/sysctl.conf 加入一行 net.ipv4.icmp_echo_ignore_all = 1 1:關 0:開 設定好後 sysctl -...

install phpPgAdmin

yum install httpd php 設定 vim /etc/httpd/conf/httpd.conf DirectoryIndex後面加入index.php 安裝phpPgAdmin yum安裝yum install phpPgAdmin 會將相關的apache php等套件一同安裝 使用yum安裝完後在/var/www/html並沒有發現phpPgAdmin的資料夾 主要分成兩個部分 主程式:/usr/share/phpPgAdmin 設定檔:/etc/phpPgAdmin/config.inc.php 網址:127.0.0.1/phpPgAdmin就可以連到,系統會自動設好 手動下載安裝:下載網站:http://phppgadmin.sourceforge.net/doku.php?id=download 下載完後解開到/var/www/html下即可 設定檔:phpPgAdmin/conf/config.inc.php 網址:127.0.0.1/phpPgAdmin就可以連到 設定config.inc.php vim /etc/phpPgAdmin/config.inc.php $conf['servers'][0]['host']...

2012年5月2日 星期三

Server instrumentation not install

安裝完postgresql後,用PgAdminIII連線會出現Server instrumentation not install的視窗 解決方法: yum install postgresql91-contrib su - postgres psql < /usr/pgsql-9.1/share/extension/adminpack--1.0.sql 再用PgAdminIII重新連線一次,點選在 Server instrumentation not install的視窗下方的『Fix it!...