
2008年11月30日
摘要: tabs=true
Replace the if structure at the bottom of the file with the following:
# Last step: fire up vim.
if [ "$gui" ]; then
if $tabs && [[ `$binary --serverlist` = "VIM" ]]; then
exec "$binary" -g $opts --remote-tab-silent ${1:+"$@"}
else
exec "$binary" -g $opts ${1:+"$@"}
fi
else......
閱讀全文
posted @
2010-11-17 15:32 地獄男爵(hellboys) 閱讀(1051) |
評論 (0) |
編輯 收藏
摘要: 1、選取最適用的字段屬性
2、使用連接(JOIN)來代替子查詢(Sub-Queries)
3、使用聯合(UNION)來代替手動創建的臨時表
4、事務
5、鎖定表
6、使用外鍵
7、使用索引
8、優化的查詢語句
閱讀全文
posted @
2009-03-25 13:35 地獄男爵(hellboys) 閱讀(2725) |
評論 (2) |
編輯 收藏
摘要: 雖然Namenode 可以設置的比較隱秘,但是依然可以被掃描到,所以只靠隱秘Namenode方法對HDFS系統的安全保障是并不可取的.
雖然可以用網絡劃分或防火墻進行隔離,但是對于Hadoop框架設計而言,是有重大安全遺漏的.
本文討論Hadoop安全隱患問題. 如何可對Hadoop進行攻擊,如何進行安全防護.
閱讀全文
posted @
2009-03-07 12:23 地獄男爵(hellboys) 閱讀(3554) |
評論 (1) |
編輯 收藏
摘要: tag: ssh script bash linux expect sssh
此腳本對于那些需要經常 ssh 登陸遠程服務器的朋友應該有點用處。尤其是需要中轉服務器 ssh 2 次以上的。腳本功能包括:將服務器 IP 和密碼保存于文本文件中 (明文保存,安全性要自己保證),方便登陸,支持多次 ssh 中轉,支持服務器編碼自動轉換,支持某個用戶名的通用密碼。
版本說明: v2.0版本中 ssh可以指定連接端口,改善bash環境支持
閱讀全文
posted @
2008-12-19 12:49 地獄男爵(hellboys) 閱讀(1457) |
評論 (1) |
編輯 收藏
摘要: /usr/lib64/apr-1/build/libtool --silent --mode=link gcc -o mod_python.la \
-rpath /usr/lib64/httpd/modules -module -avoid-version finfoobject.lo \
hlistobject.lo hlist.lo filterobject.lo connobject.lo serverobject.lo util.lo \
tableobject.lo requestobject.lo _apachemodule.lo mod_python.lo\
-L/usr/local/lib/python2.5/config -Xlinker -export-dynamic -lm\
-lpython2.5 -lpthread -ldl -lutil -lm
/usr/bin/ld: /usr/local/lib/python2.5/config/libpython2.5.a(abstract.o):
rel
閱讀全文
posted @
2008-11-30 23:04 地獄男爵(hellboys) 閱讀(3648) |
評論 (0) |
編輯 收藏