02 2010 檔案
postgres手冊鏈接
摘要: 一.linux 監控數據庫活動
$ ps auxww | grep ^postgres
postgres 3424 0.0 1.2 42708 26588 ? Ss Jan29 0:00 postgres: writer process
postgres 3425 0.0 0.0 42576 1284 ? Ss Jan29 0:00 postgres: wal writer process
postgres 3426 0.0 0.0 43364 1972 ? Ss J
閱讀全文
posted @
2010-02-09 15:30 冰是沒有未來的,因為它的永恒|
編輯
sql 刪除重復的數據
摘要: 1、對于第一種重復,比較容易解決,使用
select distinct * from tableName
就可以得到無重復記錄的結果集。
如果該表需要刪除重復的記錄(重復記錄保留1條),可以按以下方法刪除
select distinct * into #Tmp from tableName
drop table tableName
select * into tableName from #Tmp
drop table #Tmp
閱讀全文
posted @
2010-02-08 16:22 冰是沒有未來的,因為它的永恒|
編輯
apt-get proxy 設置
摘要: Well, there's second places I set the proxy on a new Linux install.
1) in /etc/profile:
code:
export http_proxy="http://user:pass@xxx.xxx.xxx.xxx:port/"
export ftp_proxy="http://user:pass@xxx.xxx.xxx.xxx:port/"
2) in /etc/apt/apt.conf
code:
Acquire::http::Proxy "http://user:pass@xxx.xxx.xxx.xxx:port/";
Acquire::ftp::Proxy "http://user:pass@xxx.xxx.xxx.xxx:port/";
閱讀全文
posted @
2010-02-02 15:16 冰是沒有未來的,因為它的永恒|
編輯
E: Dynamic MMap ran out of room(ap-get install)
摘要: Add the following line to either /etc/apt/apt.conf or /etc/apt/apt.conf.d/70debconf
code:
APT::Cache-Limit 50000000;
閱讀全文
posted @
2010-02-02 15:13 冰是沒有未來的,因為它的永恒|
編輯
在eclipse中設置project
摘要:
1. 用命令行創建新的project
#>: play new test
輸入 test(會有What is the application name?提示)
注:一定要輸入test 否則在導入到eclipse中就要手動改配置文件
2. 導入eclipse
>play eclipsify test
打開eclipse 在import 就ok了.
如果在創建project時候未輸入test。
就要手動修改test.launch文件,也就是查找
,得出 E:"project"eclipse"play1 ,然后把文件中所有的E:"project"eclipse"play1替換為test
修改前:
posted @ 2010-02-01 13:38 冰是沒有未來的,因為它的永恒| 編輯