锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美视频在线视频,黑人巨大精品欧美一区二区,欧美国产精品http://www.shnenglu.com/guojingjia2006/archive/2013/01/15/197298.html灝忔灉瀛?/dc:creator>灝忔灉瀛?/author>Tue, 15 Jan 2013 11:38:00 GMThttp://www.shnenglu.com/guojingjia2006/archive/2013/01/15/197298.htmlhttp://www.shnenglu.com/guojingjia2006/comments/197298.htmlhttp://www.shnenglu.com/guojingjia2006/archive/2013/01/15/197298.html#Feedback0http://www.shnenglu.com/guojingjia2006/comments/commentRss/197298.htmlhttp://www.shnenglu.com/guojingjia2006/services/trackbacks/197298.html

鍐欏湪鍓嶉潰

  • 浠ヤ笅鍐呭閫傚悎Yii 1.0.x錛屽叾浠栫増鏈彲鑳芥湁鐣ュ井鐨勫樊鍒?
  • 鏍規嵁鎮ㄧ殑璇勮鍜屽弽棣堬紝鏈枃浼氫笉鏂繘琛屼慨鏀瑰拰琛ュ厖錛屼互鏂逛究鏂板涔犺呫?

寮濮嬪噯澶?/h2>

Yii鎻愪緵浜嗗己澶х殑閰嶇疆鏈哄埗鍜屽緢澶氱幇鎴愮殑綾誨簱銆傚湪Yii涓嬌鐢≧BAC鏄緢綆鍗曠殑錛屽畬鍏ㄤ笉闇瑕佸啀鍐橰BAC浠g爜銆傛墍浠ュ噯澶囧伐浣滃氨鏄紝鎵撳紑緙栬緫鍣紝璺熸垜鏉ャ?/p>

璁劇疆鍙傛暟銆佸緩绔嬫暟鎹簱

鍦ㄩ厤緗暟緇勪腑錛屽鍔犱互涓嬪唴瀹癸細

components => array(
//……
authManager=>array(
class=>CDbAuthManager,//璁よ瘉綾誨悕縐?/span>
defaultRoles=>array(guest),//榛樿瑙掕壊
itemTable => pre_auth_item,//璁よ瘉欏硅〃鍚嶇О
itemChildTable => pre_auth_item_child,//璁よ瘉欏圭埗瀛愬叧緋?/span>
assignmentTable => pre_auth_assignment,//璁よ瘉欏硅祴鏉冨叧緋?/span>
),
//……

閭h繖涓変釜鏁版嵁琛ㄦ庝箞寤虹珛鍛紵寰堢畝鍗曪紝鍘葷湅framework/web/auth/schema.sql銆傛敞鎰忚鍜屼綘鐨勮嚜瀹氫箟鐨勮〃鍚嶇О瀵瑰簲璧鋒潵銆傛瘮濡係QL鏂囦歡涓殑AuthItem浣犺淇敼涓簆re_auth_item銆傜劧鍚庡湪鏁版嵁搴撲腑榪愯榪欎釜SQL鏂囦歡涓殑璇彞銆?/p>

浜嗚В姒傚康

浣犲彲鑳借闂紝鍓╀笅鐨勪唬鐮佸憿錛熸垜鍛婅瘔浣狅紝娌℃湁鍟︺俁BAC緋葷粺灝辮繖鏍峰緩绔嬭搗鏉ヤ簡銆備絾鏄負浜嗕嬌鐢ㄥ畠錛屼綘闇瑕佷簡瑙e畠鐨勮繍琛屾満鍒躲傛垜浼氬敖閲忚鐨勫暟鍡︿竴鐐?#8230;…錛堝畼鏂圭殑RBAC鏂囨。鍦?a target="_blank">榪欓噷錛屼絾鏄垜鏇劇粡鐪嬩簡4-5閬嶆墠鏄庣櫧銆傦級

涓変釜姒傚康

浣犻渶瑕佷簡瑙g殑鏄紝鎺堟潈欏圭洰鍙垎涓?em>operations錛堣鍔級,tasks錛堜換鍔★級鍜?roles錛堣鑹詫級銆?/p>

涓涓敤鎴鋒嫢鏈変竴涓垨鑰呭涓鑹詫紝姣斿錛屾垜浠繖閲屾湁涓変釜瑙掕壊錛?strong>閾惰琛岄暱銆?strong>閾惰鑱屽憳銆?strong>欏懼銆傛垜浠亣璁撅細

  • 寮犺闀?鏈夎鑹詫細閾惰琛岄暱銆侀摱琛岃亴鍛樸侀【瀹紙浜哄鑷繁鍙互瀛橀挶鍢涳級銆?
  • 鐜嬭亴鍛?鏈夎鑹詫細閾惰鑱屽憳銆侀【瀹€?
  • 灝忔潕 鏈夎鑹詫細欏懼銆?

閭d箞錛岀浉搴旂殑錛屽彧瑕侀【瀹㈠彲浠ュ仛鐨勪簨鎯咃紝灝忔潕灝卞彲浠ュ仛錛岀帇鑱屽憳鍜屽紶琛岄暱涔熷彲浠ャ傞摱琛岃亴鍛樺彲浠ュ仛鐨勪簨鎯咃紝鐜嬭亴鍛樺拰寮犺闀塊兘鍙互鍋氾紝灝忔潕灝變笉鍙互浜嗐?/p>

姣斿錛屼竴涓?#8220;欏懼”鍙互瀛橀挶錛岄偅涔堟嫢鏈?#8220;欏懼”瑙掕壊鐨勫紶琛岄暱銆佺帇鑱屽憳銆佸皬鏉庨兘鍙互瀛橀挶銆?#8220;閾惰鑱屽憳”鍙互鎵撳嵃欏懼鐨勪氦鏄撹褰曪紝閭d箞鏈?#8220;閾惰鑱屽憳”瑙?鑹茬殑寮犺闀垮拰鐜嬭亴鍛橀兘鍙互錛岃屽皬鏉庝笉琛岋紝蹇呴』鎵句竴涓湁“閾惰鑱屽憳”瑙掕壊鐨勪漢鎵嶅彲浠ユ墦鍗拌緇嗙殑浜ゆ槗璁板綍銆備竴涓?#8220;閾惰琛岄暱”鎵嶅彲浠ヨ繘鍏ラ摱琛岄挶搴撴彁閽憋紝閭d箞鍙湁 寮犺闀垮彲浠ワ紝鍥犱負瀹冩墠鏈?#8220;閾惰琛岄暱”鐨勮鑹層?/p>

榪欏氨鏄熀浜庤鑹茬殑璁よ瘉浣撶郴錛岀畝縐癛BAC銆?/p>

瑙掕壊鐨勭戶鎵?/h3>

瑙掕壊鏄彲浠ョ戶鎵跨殑錛屾瘮濡傛垜浠瀹氬涓嬶細

  • 鍑℃槸“閾惰琛岄暱”閮芥槸“閾惰鑱屽憳”錛屼篃灝辨槸璇達紝鍙閾惰鑱屽憳鍙互鍋氱殑浜嬫儏錛岄摱琛岃闀塊兘鍙互鍋氥?
  • 鍑℃槸“閾惰鑱屽憳”閮芥槸欏懼錛屽悓涓婏紝欏懼鍙互鍋氱殑浜嬫儏閾惰鑱屽憳涔熷彲浠ュ仛銆?

閭d箞瑙掕壊鍏崇郴灝卞彉鎴愪簡錛?/p>

  • 寮犺闀?鏈夎鑹詫細閾惰琛岄暱銆?
  • 鐜嬭亴鍛?鏈夎鑹詫細閾惰鑱屽憳銆?
  • 灝忔潕 鏈夎鑹詫細欏懼銆?

榪欐牱鏇寸畝鍗曚簡錛岃繖灝辨槸瑙掕壊鐨勭戶鎵褲?/p>

浠誨姟鐨勭戶鎵?/h3>

涓涓換鍔★紙task錛夋槸鍙互鍖呭惈鍙﹀涓涓換鍔$殑錛屾垜浠婦涓緥瀛愶紝姣斿“榪涘叆閾惰”銆?/p>

鎴戜滑璁懼畾“欏懼”榪欎釜瑙掕壊鏈?#8220;榪涘叆閾惰”鐨勬潈闄愩備篃灝辨槸璇達紝“欏懼”鍙互鎵ц“榪涘叆閾惰”鐨勪換鍔°傛帴涓嬫潵錛屾垜浠亣璁?#8220;榪涘叆鏌滃彴”鏄繘鍏ラ摱琛岀殑鐖舵潈 闄愶紝涔熷氨鏄錛?#8220;榪涘叆鏌滃彴”鍖呭惈“榪涘叆閾惰”銆傚彧瑕佽兘“榪涘叆鏌滃彴”鐨勪漢閮藉彲浠?#8220;榪涘叆閾惰”銆傛垜浠妸“榪涘叆鏌滃彴”榪欎釜浠誨姟鏉冮檺緇?#8220;閾惰鑱屽憳”銆?/p>

閭d箞浠庤鑹蹭笂鏉ヨ錛岀帇鑱屽憳鍙互榪涘叆閾惰錛屽洜涓虹帇鑱屽憳鐨勮鑹叉槸“閾惰鑱屽憳”錛岃?#8220;閾惰鑱屽憳”鍖呭惈浜?#8220;欏懼”鐨勮鑹層傞偅涔?#8220;欏懼”鍙互榪涜鐨?#8220;浠誨姟”瀵逛簬“閾惰鑱屽憳”鏉ヨ涔熸槸鍙互榪涜鐨勩傝?#8220;欏懼”鍙互“榪涘叆閾惰”錛岄偅涔堢帇鑱屽憳涔熷彲浠?#8220;榪涘叆閾惰”銆傝繖鏄鑹茬殑緇ф壙甯︽潵鐨勩?/p>

鎴戜滑鍐嶅亣璁炬湁涓?strong>璧甸瀵?/strong>錛屾槸涓婄駭棰嗗錛屽彲浠ヨ繘鍏ユ煖鍙拌繘琛岃瀵熴傞偅涔堬紝鎴戜滑鐨勪換鍔″叧緋繪槸錛?/p>

  • 璧甸瀵?/strong> 鏈変換鍔★細榪涘叆鏌滃彴銆?

閭d箞錛岃檔棰嗗灝卞彲浠?#8220;榪涘叆閾惰”銆傚洜涓?#8220;榪涘叆閾惰”鏄“榪涘叆鏌滃彴”鍖呭惈鐨勪換鍔°傚彧瑕佸彲浠ユ墽琛?#8220;榪涘叆鏌滃彴”鐨勪漢閮藉彲浠ユ墽琛?#8220;榪涘叆閾惰”銆傝繖灝辨槸浠誨姟鐨勭戶鎵褲?/p>

鍏充簬琛屽姩

琛屽姩鏄笉鍙垝鍒嗙殑涓綰с備篃灝辨槸璇淬傝屼竴涓鍔ㄦ槸涓嶈兘鍖呭惈鍏朵粬琛屽姩鐨勩傚亣璁炬垜浠湁涓鍔ㄥ彨“浠庨摱琛屼粨搴撲腑鎻愰挶”銆傛垜浠妸榪欎釜琛屽姩浣滃寘鍚?#8220;榪涘叆鏌滃彴”銆傞偅涔堝彧瑕佸彲浠ユ墽琛?#8220;浠庨摱琛屼粨搴撲腑鎻愰挶”鐨勮鑹查兘鍙互鎵ц“榪涘叆鏌滃彴”榪欎釜浠誨姟銆?/p>

涓夎呭叧緋?/h3>
  • 涓涓鑹插彲浠ュ寘鍚彟澶栦竴涓垨鑰呭嚑涓鑹層?
  • 涓涓鑹插彲浠ュ寘鍚彟澶栦竴涓垨鑰呭嚑涓換鍔°?
  • 涓涓鑹插彲浠ュ寘鍚彟澶栦竴涓垨鑰呭嚑涓鍔ㄣ?
  • 涓涓換鍔″彲浠ュ寘鍚彟澶栦竴涓垨鑰呭嚑涓換鍔°?
  • 涓涓換鍔″彲浠ュ寘鍚彟澶栦竴涓垨鑰呭嚑涓鍔ㄣ?
  • 涓涓鍔ㄥ彧鑳借瑙掕壊鎴栬呬換鍔″寘鍚紝琛屽姩鏄笉鍙互鍖呭惈鍏朵粬錛屼篃涓嶅彲鍐嶅垎銆?

榪欐牱錛屽氨褰㈡垚浜嗕竴涓潈闄愮鐞嗕綋緋匯傚叧浜?#8220;浠誨姟”鍜?#8220;琛屽姩”錛屼綘涓嶅繀鎬濊冨叾瀛楅潰涓婄殑鎰忎箟銆傝繖涓よ呭氨鏄艦鎴愪袱灞傛潈闄愩?/p>

榪涜璧嬫潈

鎴戜滑寤虹珛浜哛BAC鏉冮檺綆$悊錛屽氨闇瑕佽繘琛屽鏉冮檺鐨刉EB綆$悊銆傝繖浜涘氨闇瑕佷綘鑷繁鍐欎唬鐮佷簡銆?/p>

鏍規嵁涓嶅悓縐嶇被鐨勯」鐩皟鐢ㄤ笅鍒楁柟娉曚箣涓瀹氫箟鎺堟潈欏圭洰錛?/p>

涓鏃︽垜浠嫢鏈変竴濂楁巿鏉冮」鐩紝鎴戜滑鍙互璋冪敤浠ヤ笅鏂規硶寤虹珛鎺堟潈欏圭洰鍏崇郴錛?/p>

鏈鍚庯紝鎴戜滑璋冪敤涓嬪垪鏂規硶鏉ュ垎閰嶈鑹查」鐩粰鍚勪釜鐢ㄦ埛錛?/p>

涓嬮潰鎴戜滑灝嗗睍紺轟竴涓緥瀛愭槸鍏充簬鐢ㄦ墍鎻愪緵鐨凙PI寤虹珛涓涓巿鏉冪瓑綰э細

$auth=Yii::app()->authManager;  
$auth->createOperation('createPost','create a post');
$auth->createOperation('readPost','read a post');
$auth->createOperation('updatePost','update a post');
$auth->createOperation('deletePost','delete a post');

$bizRule='return Yii::app()->user->id==$params["post"]->authID;';
$task=$auth->createTask('updateOwnPost','update a post by author himself',$bizRule);
$task->addChild('updatePost');

$role=$auth->createRole('reader');
$role->addChild('readPost');

$role=$auth->createRole('author');
$role->addChild('reader');
$role->addChild('createPost');
$role->addChild('updateOwnPost');

$role=$auth->createRole('editor');
$role->addChild('reader');
$role->addChild('updatePost');

$role=$auth->createRole('admin');
$role->addChild('editor');
$role->addChild('author');
$role->addChild('deletePost');

$auth->assign('reader','readerA');
$auth->assign('author','authorB');
$auth->assign('editor','editorC');
$auth->assign('admin','adminD');
涔熷氨鏄錛屼綘闇瑕佽嚜宸卞啓涓涓鐞嗙晫闈紝鏉ュ垪鍑轟綘鐨勮鑹層佷換鍔°佽鍔紝鐒跺悗鍙互鍦ㄨ繖涓晫闈笂榪涜綆$悊銆傛瘮濡傚鍔犮佸垹闄ゃ佷慨鏀廣?/pre> 

鏉冮檺媯鏌?/h2>

鍋囪浣犲湪浣犵殑綆$悊鐣岄潰榪涜浜嗚祴鏉冿紝閭d箞鍙互鍦ㄧ▼搴忛噷闈㈣繘琛屾潈闄愭鏌ワ細

if(  Yii::app()->user->checkAccess('createPost')  )
{
// 榪欓噷鍙互鏄劇ず琛ㄥ崟絳夋搷浣?/pre> 
} else銆{
// 媯鏌ユ病鏈夐氳繃鐨勫彲浠ヨ煩杞垨鑰呮樉紺鴻鍛?/pre> 
}
涓婇潰鐨勪唬鐮佸氨媯鏌ヤ簡鐢ㄦ埛鏄惁鍙互鎵ц“createPost”錛岃繖createPost鍙兘鏄竴涓換鍔★紝涔熷彲浠ユ槸涓涓鍔ㄣ?/pre> 

鍏朵粬鐨?/h2>

瀵逛簬寰堝璇碮ii鏉冮檺浣撶郴RBAC涓嶅ソ鐢ㄧ殑浜哄叾瀹為兘娌℃湁鐪嬫噦鏂囨。銆傜患鍚堟垜鐨勪綋楠岋紝鎴戞劅瑙塝ii妗嗘灦鐨凴BAC鏄垜鐢ㄨ繃鐨勬鏋墮噷闈㈡渶濂界敤鐨勩傝屼笖鏄渶瑕佽嚜宸卞啓浠g爜鏈灝戠殑銆?/p>

Yii鐨凴BAC鏈夋洿鍔犻珮綰х殑鐢ㄦ硶錛屾瘮濡?#8220;涓氬姟瑙勫垯”錛?#8220;榛樿瑙掕壊”銆備綘鍙互鍘誨弬鑰冨畼鏂規枃妗c?/p>

鎴戠煡閬擄紝浼氭湁閮ㄥ垎浜轟粛鏃т笉鐞嗚ВRBAC錛屾垨鑰呬笉浼氱敤Yii鐨凴BAC銆傛病鏈夊叧緋伙紝浣犲彲浠ュ湪涓嬫柟鐨勮瘎璁烘閲屾彁闂?/p>

happy Yii 錛?/p>

]]>yii 婧愮爜璋冭瘯絎旇(1)---theme - module - controller about layouthttp://www.shnenglu.com/guojingjia2006/archive/2013/01/11/197181.html灝忔灉瀛?/dc:creator>灝忔灉瀛?/author>Thu, 10 Jan 2013 16:03:00 GMThttp://www.shnenglu.com/guojingjia2006/archive/2013/01/11/197181.htmlhttp://www.shnenglu.com/guojingjia2006/comments/197181.htmlhttp://www.shnenglu.com/guojingjia2006/archive/2013/01/11/197181.html#Feedback0http://www.shnenglu.com/guojingjia2006/comments/commentRss/197181.htmlhttp://www.shnenglu.com/guojingjia2006/services/trackbacks/197181.htmlstring(79) "D:\Program Files\Apach\htdocs\novemweb\themes\classic\views/admin/default\index" string(81) "D:\Program Files\Apach\htdocs\novemweb\themes\classic\views/admin/layouts/column1" string(78) "D:\Program Files\Apach\htdocs\novemweb\themes\classic\views/admin/layouts/main" string(81) "D:\Program Files\Apach\htdocs\novemweb\protected\modules\admin\views/layouts/main"

admin/default/index

This is the view content for action "index". The action belongs to the controller "DefaultController" in the "admin" module.

You may customize this page by editing D:\Program Files\Apach\htdocs\novemweb\themes\classic\views\admin\default\index.php

test--------------



]]>
浣跨敤awstats鑷姩鍒嗘瀽Nginx鏃ュ織(杞?http://www.shnenglu.com/guojingjia2006/archive/2013/01/06/197024.html灝忔灉瀛?/dc:creator>灝忔灉瀛?/author>Sun, 06 Jan 2013 10:05:00 GMThttp://www.shnenglu.com/guojingjia2006/archive/2013/01/06/197024.htmlhttp://www.shnenglu.com/guojingjia2006/comments/197024.htmlhttp://www.shnenglu.com/guojingjia2006/archive/2013/01/06/197024.html#Feedback0http://www.shnenglu.com/guojingjia2006/comments/commentRss/197024.htmlhttp://www.shnenglu.com/guojingjia2006/services/trackbacks/197024.html杞嚜: https://www.akii.org/use-awstats-automatic-analysis-nginx-log.html
浣跨敤awstats鍙互鍒嗘瀽apache鏃ュ織錛屽悓鏍蜂篃鍙互鍒嗘瀽nginx鏃ュ織銆傛湰鏂囧皢璇︾粏浠嬬粛鑷姩瀹氭椂鍒囧壊nginx鐨勮闂棩蹇楋紝騫朵嬌鐢╝wstats鏉ュ畾鏃跺垎鏋恘ginx鐨勬棩蹇楃殑瀹炵幇鏂規硶銆?/div>

鍓嶈█

鏈枃涓嬌鐢ㄧ殑鏄痑wstats 7.0鐗堟湰銆?br /> 姝ょ増鏈鍔犱簡瀵箇in7鐨勬敮鎸佷互鍙婁竴浜涙洿鏂扮殑鐗規с?/p>

New features/improvements:
- Detect Windows 7.
- Can format numbers according to language.
- More mime types.
- Added geoip_asn_maxmind plugin.
- Geoip Maxmind city plugin have now override file capabilities to complete
missing entries in geoip maxmind database.
- Added graphgooglechartapi to use online Google chart api to build graph.
- Can show map of country to report countries when using graphgooglechartapi.
- Part of codes was change to use more functions and have a cleaner code.
- Added parameter to ignore missing log files when merging for a site on
multiple servers where a single server may not have created a log for a given day.
- Update robots database.
- Added Download tracking where certain mime types are defined as downloads
and HTTP status 206 is tracked as download continuation

Awstats 鏄湪 SourceForge 涓婂彂灞曞緢蹇殑涓涓熀浜?Perl 鐨?WEB 鏃ュ織鍒嗘瀽宸ュ叿錛屼竴涓厖鍒嗙殑鏃ュ織鍒嗘瀽璁? Awstats 鏄劇ず鎮ㄤ笅鍒楄祫鏂?

  • 璁塊棶嬈℃暟銆佺嫭鐗硅瀹漢鏁?
  • 璁塊棶鏃墮棿鍜屼笂嬈¤闂?
  • 浣跨敤鑰呰璇併佹渶榪戣璇佺殑璁塊棶,
  • 姣忓懆鐨勯珮宄版椂闂?欏墊暟,鐐瑰嚮鐜?姣忓皬鏃跺拰涓鍛ㄧ殑鍗冨瓧鑺?,
  • 鍩熷悕/鍥藉鐨勪富鏈鴻瀹?欏墊暟,鐐瑰嚮鐜?瀛楄妭,269鍩熷悕/鍥藉媯嫻? geoip 媯嫻?,
  • 涓繪満鍚嶅崟,鏈榪戣闂拰鏈В鏋愮殑 IP 鍦板潃鍚嶅崟
  • 澶у鏁扮湅榪囩殑榪涘嚭欏甸潰,
  • 妗f綾誨瀷,
  • 緗戠珯鍘嬬緝緇熻琛?mod_gzip 鎴栬?mod_deflate),
  • 浣跨敤鐨勬搷浣滅郴緇?(姣忎釜鎿嶄綔緋葷粺鐨勯〉鏁?鐐瑰嚮鐜?,瀛楄妭, 35 OS detected),
  • 浣跨敤鐨勬祻瑙堝櫒,
  • 鏈哄櫒浜鴻闂?媯嫻?319 涓満鍣ㄤ漢),
  • 锠曡櫕鏀誨嚮 (5 涓爼铏鏃?,
  • 鎼滅儲寮曟搸錛屽埄鐢ㄥ叧閿瘝媯绱㈡壘鍒頒綘鐨勫湴鍧,
  • HTTP 鍗忚閿欒(鏈榪戞煡闃呮病鏈夋壘鍒扮殑欏甸潰),
  • 鍏朵粬鍩轟簬 URL 鐨勪釜鎬ф姤瀵?閾炬帴鍙傛暟, 娑夊強緇煎悎琛岄攢棰嗗煙鐩殑.
  • 璐電綉绔欒鍔犲叆”鏈鍠滅埍鐨勪功絳?#8221;.嬈℃暟.
  • 灞忓箷澶у皬(闇瑕佸湪绱㈠紩欏佃ˉ鍏呬竴浜?HTML 鏍囩).
  • 嫻忚鍣ㄧ殑鏀寔姣斾緥: Java, Flash, RealG2 reader, Quicktime reader, WMA reader, PDF reader.
  • 璐熻澆騫寵 鏈嶅姟鍣ㄦ瘮鐜囬泦緹ゆ姤鍛?

Awstats 鐨勮繍琛屾槸闇瑕?PERL 鐜鐨勬敮鎸侊紝浠?awstats 鐨勬枃妗f潵鐪嬶紝瀹冨 Apache HTTP Server 鐨勬敮鎸佹槸闈炲父瀹岀編鐨勶紝鑰屽綋鎴戜滑鎶?Web 鏈嶅姟鍣ㄦ崲鎴?Nginx 鍚庯紝瑕佽繍琛?awstats 鍙樺緱寰堥夯鐑︺傞鍏?Nginx 鏈韓瀵?Perl 鐨勬敮鎸佹槸姣旇緝寮辯殑錛岀敋鑷沖畼鏂逛篃涓嶅緩璁嬌鐢紱鍙﹀鍦ㄦ棩蹇楁牸寮忎笂鏈夐渶瑕佷慨鏀瑰悗鎵嶈兘榪愯銆?/p>

鏃ュ織鍒囧壊

鏈枃涓昏浠嬬粛閫氳繃璁?awstats 瀵規棩蹇楃粺璁$殑緇撴灉鐢熸垚闈欐侀〉闈紝鐒跺悗閫氳繃 Nginx 杈撳嚭浠ヨ揪鍒扮粺璁?Nginx 璁塊棶鏃ュ織鐨勬晥鏋滐紝鍏朵腑榪樺寘鎷浣曡 Nginx 鑷姩鍒囧壊鏃ュ織鏂囦歡銆傚浜巒ginx鐨勬棩蹇楋紝鎴戠殑鍋氭硶鏄寜澶╁垏鍓層傜劧鍚庡瓨鍏ユ棩鏈熷艦寮忕殑鐩綍涓茍鍘嬬緝銆?/p>

闇瑕佹敞鎰忕殑鏄紝nginx鐨勬棩蹇楀簲璇ラ伒寰互涓嬫牸寮忥紝鎵嶅彲浠ヨawstats璇嗗埆錛屽瀹氫箟鏃ュ織鏍煎紡

1
2
3
log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                  '$status $body_bytes_sent "$http_referer" '
                  '"$http_user_agent" "$http_x_forwarded_for"';

浣跨敤鏃ュ織鏍煎紡

1
access_log  /home/www/logs/access.log  main;

榪欓噷闇瑕佹湁涓涓皬鎶宸х殑鎻愮ず錛氭妸log_format榪欐浠g爜鏀懼湪浣爊ginx鐨刪ttp鐨勫畾涔夋涓紝鍙互鍦ㄤ笅闈㈢殑姣忎竴涓猻erver涓紩鐢ㄦ鏍煎紡銆備笉蹇呭湪姣忎釜server閲岄潰閮藉幓瀹氫箟鏍煎紡銆?br /> 鏈枃涓嶈濡備綍瀹夎nginx錛岀◢鍚庢垜灝嗗彂甯冩垜鐨刲nmp涓閿畨瑁呭寘(linux nginx mysql php)銆傚叏緙栬瘧+浼樺寲鑷姩鍖栧畨瑁咃紝浣跨敤php-fpm榪愯php鐨刦astcgi榪涚▼銆?/p>

鎴戝啓浜嗕竴涓畾鏃跺垏鍓叉棩蹇楃殑鑴氭湰銆傛瘡澶?:00寮濮嬫墽琛岋紝鍒囧壊鏄ㄥぉ鐨勬棩蹇楋紙浜ょ敱awstats鍒嗘瀽錛夛紝鍘嬬緝鍓嶅ぉ鐨勬棩蹇楋紙鍘嬬緝鏃ュ織鍙噺灝忓瓨鍌ㄧ┖闂達紝涓洪槻 姝wstats娌℃湁鍒嗘瀽瀹屽氨琚帇緙╋紝鎵浠ュ彧鍘嬬緝鍓嶅ぉ鐨勬棩蹇楋級銆傚鏋滀綘鐨刵ginx鍜宭og鏂囦歡鏀劇殑璺緞鍜屾垜鐨勪笉涓鏍鳳紝璇峰搴斾慨鏀廣?/p>

1
vim cut_log.sh

杈撳叆浠ヤ笅鍐呭

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
# This script run at 00:00
# cut yesterday log and gzip the day before yesterday log files.
# yesterday logs to awstats
 
# The Nginx logs path
logs_path="/home/www/logs/"
date_dir=${logs_path}$(date -d "yesterday" +"%Y")/$(date -d "yesterday" +"%m")/$(date -d "yesterday" +"%d")/
gzip_date_dir=${logs_path}$(date -d "-2 day" +"%Y")/$(date -d "-2 day" +"%m")/$(date -d "-2 day" +"%d")/
 
mkdir -p $date_dir
mv ${logs_path}*access.log $date_dir
/usr/local/nginx/sbin/nginx -s reopen
/usr/bin/gzip ${gzip_date_dir}*.log

鐒跺悗璁╁畠姣忓ぉ0鏃惰搗寮濮嬭繘琛岋紝鎵цcrontab -e鍔犲叆浠ヤ笅浠g爜鍐嶆寜:wq淇濆瓨閫鍑猴紝榪欓噷鎴戝皢姝よ剼鏈斁鍦?root/涓嬶紝鍒囪瑕佺粰瀹冨彲鎵ц鏉冮檺錛坈hmod +x cut_log.sh錛?

1
00 00 * * * /bin/bash /root/cut_log.sh

榪欐牱灝卞彲浠ユ瘡澶╁噷閲岃嚜鍔ㄥ垏鍓叉槰澶╃殑鏃ュ織鍒頒互鏃ユ湡涓虹洰褰曠粨鏋勭殑鐩綍涓傚彲浠ョ暀瀛樹互鍚庢煡璇€傜暀鐫鏄ㄥぉ鐨勬棩蹇椾氦緇欎笅闈㈢殑awstats鏉ュ垎鏋愶紝鍘嬬緝鍓嶅ぉ鐨勬棩蹇楋紙鍓嶅ぉ鐨勫凡緇忚鍒嗘瀽榪囦簡錛夈?/p>

瀹夎鍜岄厤緗產wstats

涓嬭澆鏈鏂扮殑 awstats錛屾垜浣跨敤鐨勬槸榪勪粖涓烘鏈鏂扮殑7.0鐗堟湰

瀹夎鍒?usr/local涓嬶紝榪欎釜璺緞鏄範鎯傚ぇ閮ㄥ垎浜轟繚鎸佺殑鑹ソ涔犳儻銆?/p>

1
2
3
wget http://awstats.sourceforge.net/files/awstats-7.0.tar.gz
tar -zxvf awstats-7.0.tar.gz
mv awstats-7.0 /usr/local/awstats

淇敼鏉冮檺錛寃get涓嬭澆涓嬫潵鐨勫寘涓潈闄愭槸闈瀝oot鐨勶紝璧嬩簣榪囨潈闄愪箣鍚庯紝.pl鐨勬枃浠朵篃灝卞彲浠ヨ繍琛屼簡銆?/p>

1
2
3
4
chown -R root:root /usr/local/awstats
chmod -R =rwX /usr/local/awstats
chmod +x /usr/local/awstats/tools/*.pl
chmod +x /usr/local/awstats/wwwroot/cgi-bin/*.pl

鐒跺悗鎵ц tools 鐩綍涓殑 awstats_configure.pl 閰嶇疆鍚戝錛屽垱寤轟竴涓柊鐨勭粺璁?/p>

榪愯(娉ㄦ剰榪欓噷瑕佸湪褰撳墠鐩綍榪愯銆傚惁鍒欎細鏈変竴浜涘叧浜庢爣鍑嗙洰褰曠殑鎻愮ず銆?

1
2
cd /usr/local/awstats/tools
./awstats_configure.pl

灝嗕細鏈夊涓嬩竴浜涙彁紺猴細

1
2
3
4
5
6
7
8
9
10
-----> Running OS detected: Linux, BSD or Unix
 
-----> Check for web server install
 
Enter full config file path of your Web server.
Example: /etc/httpd/httpd.conf
Example: /usr/local/apache2/conf/httpd.conf
Example: c:\Program files\apache group\apache\conf\httpd.conf
Config file path ('none' to skip web server setup):
>none #榪欓噷娣籲one騫跺洖杞︼紝鍥犱負鎴戜滑娌℃湁浣跨敤apache

鍥炶濺涔嬪悗涓嬩竴涓夐」

1
2
3
4
5
6
7
8
9
10
11
Your web server config file(s) could not be found.
You will need to setup your web server manually to declare AWStats
script as a CGI, if you want to build reports dynamically.
See AWStats setup documentation (file docs/index.html)
 
-----> Update model config file '/usr/local/awstats/wwwroot/cgi-bin/awstats.model.conf'
 File awstats.model.conf updated.
 
-----> Need to create a new config file ?
Do you want me to build a new AWStats config/profile
file (required if first install) [y/N] ?

#榪欓噷閫塝錛屽垱寤轟竴涓柊鐨勯厤緗枃浠?/p>

1
2
3
4
5
6
-----> Define config file name to create
What is the name of your web site or profile analysis ?
Example: www.mysite.com
Example: demo
Your web site, virtual server or profile name:
>akii.org  #榪欓噷杈撳叆浣犺鍒嗘瀽鐨勫煙鍚嶏紝鎴栨槸闅忎究涓涓綘鏄撹鐨勯厤緗悕騫跺洖杞?/code>

鎺ヤ笅鏉ヨ瀹氫箟浣犵殑閰嶇疆鏂囦歡瀛樻斁鐨勮礬寰勶紝鍙敤榛樿

1
2
3
4
5
-----> Define config file path
In which directory do you plan to store your config file(s) ?
Default: /etc/awstats
Directory path to store config file(s) (Enter for default):
> #鐩存帴鍥炶濺錛屼嬌鐢ㄩ粯璁よ礬寰?etc/awstats

鍥炶濺鍚庣殑鎻愮ず

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-----> Create config file '/etc/awstats/awstats.akii.org.conf'
 Config file /etc/awstats/awstats.akii.org.conf created.
 
-----> Add update process inside a scheduler
Sorry, configure.pl does not support automatic add to cron yet.
You can do it manually by adding the following command to your cron:
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=akii.org
Or if you have several config files and prefer having only one command:
/usr/local/awstats/tools/awstats_updateall.pl now
Press ENTER to continue... #鎸夊洖杞︾戶緇?/code>
 
A SIMPLE config file has been created: /etc/awstats/awstats.akii.org.conf
You should have a look inside to check and change manually main parameters.
You can then manually update your statistics for 'yuyuanchun.com' with command:
> perl awstats.pl -update -config=akii.org
You can also build static report pages for 'akii.org' with command:
> perl awstats.pl -output=pagetype -config=akii.org
 
Press ENTER to finish... #鍥炶濺瀹屾垚閰嶇疆鏂囦歡鐨勫垱寤?/code>

瀹屾垚閰嶇疆鏂囦歡鐨勫垱寤哄悗錛屾垜浠繕瑕佷慨鏀逛竴涓嬨傚洜涓烘垜浠槸鎸夊ぉ鍒囧壊鐨勬棩蹇楋紝鍒囧壊瀹屾垚鍚庝氦鐢盿wstats鍘誨垎鏋愩傚茍涓嶆槸璁゛wstats鍘誨垎鏃舵鍦ㄦ椂鏃?澧為暱鐨勪篃灝辨槸姝e湪琚啓鍏ョ殑鏃ュ織錛岃繖鏍風殑濂藉鏄笉鑷充簬閬楁紡鏁版嵁錛屽茍涓斿垎鏋愬凡緇忓垏鍓插畬鎴愮殑鏃ュ織錛屾洿涓嶇敤鎷呭績浼氭湁鍐茬獊銆傚潖澶勬槸鎴戜竴澶╁垏鍓蹭竴嬈℃棩蹇楋紝浣犺絳夌浜屽ぉ 鎵嶈兘鐪嬫槰澶╃殑涓浜涜緇嗘暟鎹?/p>

淇敼/etc/awstats/awstats.akii.org.conf錛屾墽琛岋細

1
vi /etc/awstats/awstats.akii.org.conf

鎵懼埌

1
LogFile="/var/log/httpd/mylog.log"

淇敼涓猴細

1
LogFile="/home/www/logs/%YYYY-24/%MM-24/%DD-24/akii.org_access.log"

濡傛灉浣犵殑鏃ュ織璺緞鍜屾垜鐨勪笉涓鏍鳳紝璇蜂慨鏀規垚瀵瑰簲鐨勬棩蹇楁枃浠跺悕銆備互涓婄殑瀹屾暣璺緞鏄垏鍓插悗淇濆瓨鐨刵ginx鏃ュ織鏂囦歡銆傚叾涓?YYYY-24/%MM-24/%DD-24琛ㄧず騫存湀鏃ラ兘鍑忓幓24灝忔椂錛屼篃灝辨槸鏄ㄥぉ鐨勬棩蹇楃洰褰曘備慨鏀瑰畬鎴愬悗鎸?wq淇濆瓨閫鍑恒?/p>

鎺ヤ笅鏉ュ彲浠ユ祴璇曚竴涓媋wstats鍒嗘瀽鏃ュ織浜嗭紙鍓嶆彁鏄綘宸茬粡鏈変簡鍒囧壊榪囩殑鏃ュ織錛屾病鏈夌殑璇濆彲浠ュ厛閫琛屼竴涓嬪垏鍓叉棩蹇楃殑鑴氭湰/root/cut_log.sh錛?/p>

棣栧厛錛岃繕瑕佸垱寤轟竴涓猘wstats鐢ㄤ簬璁板綍鏁版嵁鐨勭洰褰?/p>

1
mkdir -p /var/lib/awstats

鐒跺悗榪愯awstats鐨剋wwroot鐩綍涓殑awatsts.pl鏉ユ祴璇曚竴涓?/p>

1
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=akii.org

浣犲鏋滅湅鍒扮被浼間笅闈㈢殑鎻愮ず灝辮鏄庨厤緗枃浠墮兘姝g‘浜嗐?/p>

1
2
3
4
5
6
7
8
9
10
11
12
13
Create/Update database for config "/etc/awstats/awstats.akii.org.conf" by AWStats version 7.0 (build 1.964)
From data in log file "/home/www/logs/2010/07/24/akii.org_access.log"...
Phase 1 : First bypass old records, searching new record...
Direct access after last parsed record (after line 43260)
Jumped lines in file: 43260
 Found 43260 already parsed records.
Parsed lines in file: 0
 Found 0 dropped records,
 Found 0 comments,
 Found 0 blank records,
 Found 0 corrupted records,
 Found 0 old records,
 Found 0 new qualified records

緇熻鍒嗘瀽瀹屾垚鍚庯紝緇撴灉榪樺湪 Awstats 鐨勬暟鎹簱涓傚湪 Apache 涓婏紝鍙互鐩存帴鎵撳紑 Perl 紼嬪簭鐨勭綉欏墊煡鐪嬬粺璁°? 浣嗘湰鏂囧紑濮嬫椂宸茬粡鎻愬埌錛孨ginx 瀵?Perl 鏀寔騫朵笉濂斤紝鎵浠ユ垜浠鎹釜鏂規硶錛屽埄鐢?awstats 鐨勫伐鍏峰皢緇熻鐨勭粨鏋滅敓鎴愰潤鎬佹枃浠訛紝鍏蜂綋鐨勬楠ゅ涓嬶細

  • 棣栧厛鍦?webroot 鐩綍涓嬪垱寤轟竴涓枃浠跺す銆備緥錛?home/www/awstats
  • 鍐欎竴涓剼鏈紝瀹氭湡鎵ц璁?Awstats 鎶婇潤鎬侀〉闈㈢敓鎴愬埌璇ョ洰褰曚腑

鍏堢敓鎴愬瓨鏀綼wstats鐢熸垚鐨勯潤鎬佹枃浠剁殑鐩綍錛屾垜榪欓噷鐢ㄧ殑鏄?home/www/awstats

1
mkdir -p /home/www/awstats

鎴戜滑鏉ュ啓涓涓剼鏈?/p>

1
vim /root/awstats.sh

鐒跺悗杈撳叆浠ヤ笅鍐呭

1
2
3
4
5
#!/bin/bash
mkdir -p /home/www/awstats/akii.org
/usr/local/awstats/tools/awstats_buildstaticpages.pl -update  \
-config=akii.org -lang=cn -dir=/home/www/awstats/akii.org  \
-awstatsprog=/usr/local/awstats/wwwroot/cgi-bin/awstats.pl

涓婅堪鍛戒護鐨勫叿浣撴剰鎬濆涓嬶細

  • /usr/local/awstats/tools/awstats_buildstaticpages.pl Awstats 闈欐侀〉闈㈢敓鎴愬伐鍏?/li>
  • -update -config=akii.org 鏇存柊閰嶇疆欏?/li>
  • -lang=cn 璇█涓轟腑鏂?/li>
  • -dir=/home/www/awstats 緇熻緇撴灉杈撳嚭鐩綍
  • -awstatsprog=/usr/local/awstats/wwwroot/cgi-bin/awstats.pl Awstats 鏃ュ織鏇存柊紼嬪簭璺緞銆?/li>

鐒跺悗鍦ㄤ綘鐨刵ginx鐨勯厤緗枃浠朵腑錛屽湪浣犳兂瑕佸畨緗產wstats鎴栭粯璁ょ殑ip鎴栧煙鍚嶇殑server孌典腑錛屽姞鍏ュ叧浜巃wstats鍜宨con鐨勪袱涓洰褰曢厤緗?/p>

濡備竴涓畬鏁存渚嬶細

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
server {
listen       80;
server_name  localhost;
root /home/www;
index index.html;
 
location ~ ^/awstats/ {     # awstats  闈欐侀〉闈㈢洰褰?/code>
        root   /home/www/awstats;
        autoindex on; #鍙互鐩綍嫻忚浣犵殑澶氫釜鍩熷悕鐨勭洰褰曠敤浜庡垎鏋?/code>
        index  index.html;
        access_log off;
}
 
location ~ ^/icon/ {             # 鍥炬爣鐩綍
        root   /usr/local/awstats/wwwroot;
        index  index.html;
        access_log off;
}
}

鎺ヤ笅鏉ュ彲浠ユ祴璇曚竴涓嬭剼鏈槸鍚﹀彲浠ユ紜墽琛?/p>

榪樻槸鍒繕浜嗙粰瀹冨彲鎵ц鏉冮檺

1
2
chmod +x /root/awstats.sh
/root/awstats.sh

濡傛灉浣犵湅鍒板畠鐢熸垚浜嗕竴鍫嗙綉欏碉紝閭e氨璇存槑鎴愬姛浜嗐?/p>

杈撳嚭淇℃伅閮ㄥ垎渚嬪

1
2
3
4
5
6
Launch update process : "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=akii.org -update -configdir=
......
Build keywords page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=akii.org -staticlinks -lang=cn -output=keywords
Build errors404 page: "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl" -config=akii.org -staticlinks -lang=cn -output=errors404
20 files built.
Main HTML page is 'awstats.akii.org.html'.

鐒跺悗鍙互鎶婂畠鍔犲叆鑷姩榪愯浜嗐?/p>

閰嶇疆awstats鑴氭湰鑷姩榪愯

1
crontab -e

鍔犲叆

1
00 1 * * * /root/awstats.sh

鐒跺悗淇濆瓨閫鍑恒?/p>

榪欐牱灝卞彲浠ユ瘡澶╁湪鍑屾櫒鑷姩鍒嗗壊鏃ュ織錛屽茍涓斿紑濮嬭嚜鍔ㄧ敤awstats鍒嗘瀽nginx鐨勬棩蹇椾簡銆?/p>

璁よ瘉璁塊棶

濡傛灉浣犳兂緇欎綘鐨刟wstats鍔犱笂璁塊棶瀵嗙爜錛屽彲浠ヨ榪欓噷錛?a target="_blank">nginx涓虹洰褰曟垨緗戠珯鍔犱笂瀵嗙爜璁よ瘉

鍘熷垱鏂囩珷錛屽啓鐨勮緵鑻︺傚鏋滀綘瑕佽漿杞斤紝璇蜂繚鐣欏嚭澶勫強閾炬帴銆?/p>

鍙傝冭祫鏂?http://www.ibm.com/developerworks/cn/linux/l-cn-awstats-nginx/index.html



]]>
MongoDb Architecturehttp://www.shnenglu.com/guojingjia2006/archive/2012/12/19/196438.html灝忔灉瀛?/dc:creator>灝忔灉瀛?/author>Wed, 19 Dec 2012 03:52:00 GMThttp://www.shnenglu.com/guojingjia2006/archive/2012/12/19/196438.htmlhttp://www.shnenglu.com/guojingjia2006/comments/196438.htmlhttp://www.shnenglu.com/guojingjia2006/archive/2012/12/19/196438.html#Feedback0http://www.shnenglu.com/guojingjia2006/comments/commentRss/196438.htmlhttp://www.shnenglu.com/guojingjia2006/services/trackbacks/196438.html鏈枃鍥劇墖鏉ヨ嚜 Ricky Ho 鐨勫崥鏂?MongoDB 鏋勬灦錛?a title="鏌ョ湅 MongoDB 鐨勫叏閮ㄦ枃绔? target="_blank">MongoDB Architecture錛夛紝榪欐槸涓竴鍚氨鎰熻寰堝娉涚殑璇濋錛屼絾鏄綔鑰呭湪鏂囩珷涓‘瀹炲 MongoDB 鐢卞唴鑷沖鐨?a title="鏌ョ湅鏋舵瀯鐨勫叏閮ㄦ枃绔? target="_blank">鏋舵瀯榪涜浜嗗墫鏋愩傛湰鏂囨埅鍙栦簡鍏舵枃绔犱腑鐨勫嚑寮犻噸鐐規灦鏋勭ず鎰忓浘鐗囪繘琛岀畝鍗曟弿榪般傚笇鏈涘澶у鏈夌敤銆?/div>
MongoDB 鏁版嵁鏂囦歡鍐呴儴緇撴瀯

  1. MongoDB 鍦ㄦ暟鎹瓨鍌ㄤ笂鎸夊懡鍚嶇┖闂存潵鍒掑垎錛屼竴涓?collection 鏄竴涓懡鍚嶇┖闂達紝涓涓儲寮曚篃鏄竴涓懡鍚嶇┖闂?/li>
  2. 鍚屼竴涓懡鍚嶇┖闂寸殑鏁版嵁琚垎鎴愬緢澶氫釜 Extent錛孍xtent 涔嬮棿浣跨敤鍙屽悜閾捐〃榪炴帴
  3. 鍦ㄦ瘡涓涓?Extent 涓紝淇濆瓨浜嗗叿浣撴瘡涓琛岀殑鏁版嵁錛岃繖浜涙暟鎹篃鏄氳繃鍙屽悜閾炬帴榪炴帴鐨?/li>
  4. 姣忎竴琛屾暟鎹瓨鍌ㄧ┖闂翠笉浠呭寘鎷暟鎹崰鐢ㄧ┖闂達紝榪樺彲鑳藉寘鍚竴閮ㄥ垎闄勫姞絀洪棿錛岃繖浣垮緱鍦ㄦ暟鎹?update 鍙樺ぇ鍚庡彲浠ヤ笉縐誨姩浣嶇疆
  5. 绱㈠紩浠?BTree 緇撴瀯瀹炵幇
  鍦?MongoDB 涓疄鐜頒簨鍔?/strong>

浼楁墍鍛ㄧ煡錛孧ongoDB 鍙敮鎸佸鍗曡璁板綍鐨勫師瀛愭т慨鏀癸紝騫朵笉鏀寔瀵瑰琛屾暟鎹殑鍘熷瓙鎿嶄綔銆備絾鏄氳繃涓婂浘涓殑鍙樻佹搷浣滐紝瀹為檯浣犱篃鍙互鑷繁瀹炵幇浜嬪姟銆傚叾姝ラ濡傚浘鎵鏈細
  • 絎?1 姝ワ細鍏堣褰曚竴鏉′簨鍔¤褰曪紝灝嗚淇敼鐨勫琛岃褰曠殑淇敼鍊煎啓鍒伴噷闈紝騫惰緗叾鐘舵佷負 init錛堝鏋滆繖鏃跺欐搷浣滀腑鏂紝閭d箞鍦ㄩ噸鏂板惎鍔ㄦ椂錛屼細鍒ゆ柇鍒頒粬澶勪簬 init 鐘舵侊紝浠庤屽皢鍏朵繚瀛樼殑澶氳淇敼鎿嶄綔搴旂敤鍒板叿浣撶殑琛屼笂錛?/li>
  • 絎?2 姝ワ細鐒跺悗鏇存柊鍏蜂綋瑕佷慨鏀圭殑琛岋紝灝嗗垰鎵嶅啓鐨勪簨鍔¤褰曠殑鏍囪瘑鍐欏埌瀹冪殑 tran 瀛楁涓?/li>
  • 絎?3 姝ワ細灝嗕簨鍔¤褰曠殑鐘舵佷粠 init 鍙樻垚 pending錛堝鏋滃湪榪欐椂鍊欐搷浣滀腑鏂紝閭d箞鍦ㄩ噸鏂板惎鍔ㄦ椂錛屼細鍒ゆ柇鍒板畠鐨勭姸鎬佹槸 pending 鐨勶紝榪欐椂鍊欐煡鐪嬪叾鎵鏈夊搴旂殑澶氭潯瑕佷慨鏀圭殑璁板綍錛屽鏋滃叾 tran 鏈夊鹼紝閭d箞灝辮繘琛岀 4 姝ワ紝濡傛灉娌″鹼紝璇存槑絎?4 姝ュ凡緇忔墽琛岃繃浜嗭紝鐩存帴灝嗗叾鐘舵佷粠 pending 鍙樻垚 commited 浜嗗氨琛岋級
  • 絎?4 姝ワ細灝嗛渶瑕佷慨鏀圭殑澶氭潯璁板綍鐨勭浉搴斿間慨鏀逛簡錛屽茍涓?unset 鎺変箣鍓嶇殑 tran 瀛楁
  • 絎?5 姝ワ細灝嗕簨鍔¤褰曢偅涓鏉$殑鐘舵佷粠 pending 鍙樻垚 commited錛屼簨鍔″畬鎴?/li>

        鍏跺疄涓婇潰鐨勬楠ゅ茍涓嶇綍瑙侊紝鍦ㄦ敮鎸佷簨鍔$殑 DBMS 涓紝鍏朵簨鍔″師瀛愭ф彁浜ょ殑淇濊瘉澶у閮戒笌涓婇潰綾諱技銆傚叾瀹炰簨鍔¤褰曠殑 tran 閭f潯璁板綍錛屽氨綾諱技浜庤繖浜?DBMS 涓殑 redolog 涓鏍楓?/p>

  MongoDB 鏁版嵁鍚屾

涓婂浘鏄?MongoDB 閲囩敤 Replica Sets 妯″紡鐨勫悓姝ユ祦紼?
  • 綰㈣壊綆ご琛ㄧず鍐欐搷浣滃啓鍒?Primary 涓婏紝鐒跺悗寮傛鍚屾鍒板涓?Secondary 涓?/li>
  • 钃濊壊綆ご琛ㄧず璇繪搷浣滃彲浠ヤ粠 Primary 鎴?Secondary 浠繪剰涓涓笂璇?/li>
  • 鍚勪釜 Primary 涓?Secondary 涔嬮棿涓鐩翠繚鎸佸績璺沖悓姝ユ嫻嬶紝鐢ㄤ簬鍒ゆ柇 Replica Sets 鐨勭姸鎬?/li>

        鍒嗙墖鏈哄埗


  • MongoDB 鐨勫垎鐗囨槸鎸囧畾涓涓垎鐗?key 鏉ヨ繘琛岋紝鏁版嵁鎸夎寖鍥村垎鎴愪笉鍚岀殑 chunk錛屾瘡涓?chunk 鐨勫ぇ灝忔湁闄愬埗
  • 鏈夊涓垎鐗囪妭鐐逛繚瀛樿繖浜?chunk錛屾瘡涓妭鐐逛繚瀛樹竴閮ㄥ垎鐨?chunk
  • 姣忎竴涓垎鐗囪妭鐐歸兘鏄竴涓?Replica Sets錛岃繖鏍蜂繚璇佹暟鎹殑瀹夊叏鎬?/strong>
  • 褰撲竴涓?chunk 瓚呰繃鍏墮檺鍒剁殑鏈澶т綋縐椂錛屼細鍒嗚鎴愪袱涓皬鐨?chunk
  • 褰?chunk 鍦ㄥ垎鐗囪妭鐐逛腑鍒嗗竷涓嶅潎琛℃椂錛屼細寮曞彂 chunk 榪佺Щ鎿嶄綔

        鏈嶅姟鍣ㄨ鑹?/strong>

 

 涓婇潰璁蹭簡鍒嗙墖鐨勬爣鍑嗭紝涓嬮潰鏄叿浣撳湪鍒嗙墖鏃剁殑鍑犵鑺傜偣瑙掕壊
  • 瀹㈡埛绔闂礬鐢辮妭鐐?mongos 鏉ヨ繘琛屾暟鎹鍐?/li>
  • config 鏈嶅姟鍣ㄤ繚瀛樹簡涓や釜鏄犲皠鍏崇郴錛屼竴涓槸 key 鍊肩殑鍖洪棿瀵瑰簲鍝竴涓?chunk 鐨勬槧灝勫叧緋伙紝鍙︿竴涓槸 chunk 瀛樺湪鍝竴涓垎鐗囪妭鐐圭殑鏄犲皠鍏崇郴
  • 璺敱鑺傜偣閫氳繃 config 鏈嶅姟鍣ㄨ幏鍙栨暟鎹俊鎭紝閫氳繃榪欎簺淇℃伅錛屾壘鍒扮湡姝e瓨鏀炬暟鎹殑鍒嗙墖鑺傜偣榪涜瀵瑰簲鎿嶄綔
  • 璺敱鑺傜偣榪樹細鍦ㄥ啓鎿嶄綔鏃跺垽鏂綋鍓?chunk 鏄惁瓚呭嚭闄愬畾澶у皬錛屽鏋滆秴鍑猴紝灝卞垎鍒楁垚涓や釜 chunk
  • 瀵逛簬鎸夊垎鐗?key 榪涜鐨勬煡璇㈠拰 update 鎿嶄綔鏉ヨ錛岃礬鐢辮妭鐐逛細鏌ュ埌鍏蜂綋鐨?chunk 鐒跺悗鍐嶈繘琛岀浉鍏崇殑宸ヤ綔
  • 瀵逛簬涓嶆寜鍒嗙墖 key 榪涜鐨勬煡璇㈠拰 update 鎿嶄綔鏉ヨ錛宮ongos 浼氬鎵鏈変笅灞炶妭鐐瑰彂閫佽姹傜劧鍚庡啀瀵硅繑鍥炵粨鏋滆繘琛屽悎騫?/li>

        鏇村璇︾粏鍐呭璇風湅鍘熸枃錛?a target="_blank">MongoDB Architecture

 



]]>
aio,epoll,libevent,boost::asio瑙e喅鐨勯棶棰?/title><link>http://www.shnenglu.com/guojingjia2006/archive/2012/11/09/194979.html</link><dc:creator>灝忔灉瀛?/dc:creator><author>灝忔灉瀛?/author><pubDate>Fri, 09 Nov 2012 07:56:00 GMT</pubDate><guid>http://www.shnenglu.com/guojingjia2006/archive/2012/11/09/194979.html</guid><wfw:comment>http://www.shnenglu.com/guojingjia2006/comments/194979.html</wfw:comment><comments>http://www.shnenglu.com/guojingjia2006/archive/2012/11/09/194979.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/guojingjia2006/comments/commentRss/194979.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/guojingjia2006/services/trackbacks/194979.html</trackback:ping><description><![CDATA[<div> aio鏄痩inux2.6浠ュ悗鍐呮牳瀹炵幇鐨勫紓姝O錛屾垨鑰呰浠栨墠鏄湡姝f剰涔変笂鐨勫紓姝O銆?br /> epoll浣滀負select鐨刲inux鐨勬浛浠e搧錛岃В鍐充簡selectfd_set鐨勯檺鍒躲傛ц兘浼樹簬select銆傝屽湪max騫沖彴涓婃浛浠f柟妗堟槸kqueue銆?br /> libevent鏄竴涓法騫沖彴寮傛瑙e喅鏂規錛屼粬鏍規嵁涓嶅悓鐨勫鉤鍙版彁渚涗簡涓嶅悓鐨勫紓姝ユ柟妗堬紝閲囩敤Reactor妯″瀷瀹炵幇銆?br /> Boost::asio鏄竴涓法騫沖彴鐨勭綉緇滃強搴曞眰IO鐨凜++<a target="_blank">緙栫▼</a>搴擄紝瀹炵幇浜嗗TCP銆乁DP銆両CMP銆佷覆鍙g殑鏀寔銆傚浜庤鍐欐柟寮忥紝ASIO鏀寔鍚屾鍜屽紓姝ヤ袱縐嶆柟寮忋傞噰鐢ㄤ簡epoll鏉ュ疄鐜幫紝鎻掑叆浜嗗ぇ閲忕殑淇″彿澶勭悊銆侫sio搴撲笉闇瑕佸崟鐙究浜庯紝浣嗘槸嫻嬭瘯榪囩▼涓boost::system鐨勪緷璧栧彲鑳戒細闇瑕佺紪璇戦儴鍒哹oost涓殑搴撱?br /> muduo閲囩敤Reactor妯″瀷瀹炵幇鐨勭綉緇滃簱錛屽彧鏀寔<a target="_blank">Linux</a> 2.6.x涓嬬殑騫跺彂闈為樆濉濼CP緗戠粶緙栫▼錛屼笉璺ㄥ鉤鍙幫紝涓嶆敮鎸乽dp鍜宨pv6銆傚悶鍚愰噺鏂歸潰muduo姣攍ibevent2蹇?8%錛屽湪浜嬩歡澶勭悊鏁堢巼鏂?闈紝muduo涓巐ibevent2鎬諱綋姣旇緝鎺ヨ繎錛宮uduo鍚炲悙閲忔瘮boost.asio楂?5%浠ヤ笂銆傛ц兘鏂歸潰浣滀負瑙e喅澶ф暟鎹悶鍚愰噺寰堟湁浼樺娍錛屼絾鏄 騫沖彴鍜岀綉緇滃崗璁敮鎸佹柟闈㈡槸涓涓棶棰樸?br /> ACE涔熸槸寰堢粡鍏哥殑緗戠粶搴擄紝鍑鴻嚜銆奀++緗戠粶緙栫▼銆嬩綔鑰呬箣鎵嬶紝璁捐綺懼紼嬪害鍫О涓嫻侊紝鏀寔鍗忚鑼冨洿涔熷緢騫匡紝浣嗘槸浣跨敤澶嶆潅搴﹀拰瀛︿範澶嶆潅搴﹁緝楂橈紝涓鐩存湁“瀛︽垜鑰呯敓錛岀敤鎴戣呮”鐨勮瘎浠楓?br /> 闇瑕佹敞鎰忕殑鏄粬浠殑瀹氫綅涓嶅悓錛宎io鍜宔poll涓昏鏄寮傛鎻愪緵瑙e喅鏂規涓嶆槸緗戠粶搴撲笉鎻愪緵緗戠粶鏀寔錛岃宭ibevent涔熸槸涓昏瑙e喅IO鐨勯棶棰樺彧鎻愪緵綆鍗曠殑http鏀寔錛宎sio鍜宮uduo榪樻湁ACE涓鏍鋒槸楂樻ц兘緗戠粶搴撱?/div><img src ="http://www.shnenglu.com/guojingjia2006/aggbug/194979.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/guojingjia2006/" target="_blank">灝忔灉瀛?/a> 2012-11-09 15:56 <a href="http://www.shnenglu.com/guojingjia2006/archive/2012/11/09/194979.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Nodejs 鍏ラ棬http://www.shnenglu.com/guojingjia2006/archive/2012/07/17/183810.html灝忔灉瀛?/dc:creator>灝忔灉瀛?/author>Mon, 16 Jul 2012 16:17:00 GMThttp://www.shnenglu.com/guojingjia2006/archive/2012/07/17/183810.htmlhttp://www.shnenglu.com/guojingjia2006/comments/183810.htmlhttp://www.shnenglu.com/guojingjia2006/archive/2012/07/17/183810.html#Feedback0http://www.shnenglu.com/guojingjia2006/comments/commentRss/183810.htmlhttp://www.shnenglu.com/guojingjia2006/services/trackbacks/183810.html闃呰鍏ㄦ枃

]]>
鍏嶈垂鐨凜++鍥懼艦鍜屾父鎴忓簱http://www.shnenglu.com/guojingjia2006/archive/2012/06/15/178934.html灝忔灉瀛?/dc:creator>灝忔灉瀛?/author>Fri, 15 Jun 2012 06:29:00 GMThttp://www.shnenglu.com/guojingjia2006/archive/2012/06/15/178934.htmlhttp://www.shnenglu.com/guojingjia2006/comments/178934.htmlhttp://www.shnenglu.com/guojingjia2006/archive/2012/06/15/178934.html#Feedback0http://www.shnenglu.com/guojingjia2006/comments/commentRss/178934.htmlhttp://www.shnenglu.com/guojingjia2006/services/trackbacks/178934.htmlShare

C++ is a multi paradigm, free form complied, general purpose and thus a very powerful language used basically forthe purpose of programming. This language is regarded as an intermediatelevel language .The main reason for this is that it consists of both high level as well aslow level features.

It is one of the most popularprogramming languages due to many reasons. It has application domains which include system software, device drivers, application software and many other including client applications and entertainment software of which the best example is a video game.

In this list we introduces some highly useful C++ graphics and game libraries. These libraries has provides a great interface to add these functionality to their project or application easily. C++ users would love to use these libraries for their next project.

Today we are going to share C++ graphic and games Libraries for developers, i hope these libraries would help developers a lot in their next project to make impressive and attractive layout for theirnest applications. Visit this list and share your thought in our comment section below.

1) Antigrain

Anti-Grain Geometry (AGG) is an Open Source, free of charge graphic library, written in industrially standard C++. The terms and conditions of use AGG are described on The License page. AGG doesn’t depend on any graphic API or technology. Basically, you can think of AGG as of a rendering engine that produces pixel images in memory from some vectorial data.

2) Amanith

AmanithVG SRE is a pure software solution that grants a superlative vector graphics quality without to sacrifice performance on any kind of architecture / platform. Thanks to its original polygon rasterization algorithm and dedicated optimized scanline fillers, this engine constitues the fastest OpenVG software rendering solution available on the market.

3) Codehead

4) Oscilloscope Lib

5) Lib SDL

Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. It is used by MPEG playback software, emulators, and many popular games, including the award winning Linux port of “Civilization: Call To Power.”

6) Ogre 3d

OGRE (Object-Oriented Graphics Rendering Engine) is a scene-oriented, flexible 3D engine written in C++ designed to make it easier and more intuitive for developers to produce applications utilising hardware-accelerated 3D graphics. The class library abstracts all the details of using the underlying system libraries like Direct3D and OpenGL and provides an interface based on world objects and other intuitive classes.

杞嚜:

http://zoomzum.com/6-free-c-graphics-and-game-libraries/



]]>
Android 鑷姩鎺ュ惉鏉ョ數 http://www.shnenglu.com/guojingjia2006/archive/2012/06/07/177946.html灝忔灉瀛?/dc:creator>灝忔灉瀛?/author>Thu, 07 Jun 2012 09:20:00 GMThttp://www.shnenglu.com/guojingjia2006/archive/2012/06/07/177946.htmlhttp://www.shnenglu.com/guojingjia2006/comments/177946.htmlhttp://www.shnenglu.com/guojingjia2006/archive/2012/06/07/177946.html#Feedback0http://www.shnenglu.com/guojingjia2006/comments/commentRss/177946.htmlhttp://www.shnenglu.com/guojingjia2006/services/trackbacks/177946.html

緗戜笂鎵懼埌鐨?HTC One X,涓夋槦i9000 cm9 4.0.4嫻嬭瘯閫氳繃,鍦ㄦ璁板綍涓涓嬶紝澶т紮闇瑕佺殑璇濆氨鎷垮幓鍚?.


1. Android 2.3(涓嶅寘鎷?浠ヤ笅錛岄氳繃鑾峰彇aidl榪滅▼鏈嶅姟鎺ュ彛TelephoneyManager鏉ヨ皟鐢ㄥ畠鐨刟nswerRingingCall鏂規硶(ps: 鍏充簬姝ゆ柟娉曞叿浣撳仛娉曪紝鐢變簬鏃墮棿鍏崇郴錛屾垜榪欓噷灝變笉璇︾粏璇村暒錛屽ぇ瀹禛oogle涓涓嬪惂)

        TelephonyManager tm = (TelephonyManager) getSystemService(TELEPHONY_SERVICE);
        Class c 
= Class.forName(tm.getClass().getName());
        Method m 
= c.getDeclaredMethod("getITelephony");
        m.setAccessible(
true);
        ITelephony telephonyService;
        telephonyService 
= (ITelephony) m.invoke(tm);

        
// Silence the ringer and answer the call!
        telephonyService.silenceRinger();
        telephonyService.answerRingingCall();



2. Android 2.3(鍖呮嫭)浠ヤ笂錛屽鏋滅収鏍蜂嬌鐢═elephoneyManager鑾峰彇鍒扮殑answerRingingCall鏂規硶鐨勮瘽錛屽氨浼氭姏娌℃湁 android.permission.MODIFY_PHONE_STATE鏉冮檺寮傚父錛屽叾瀹炰綘宸茬粡閰嶄簡榪欎釜鏉冮檺鐨勪簡錛屼絾鏄笉濂芥剰鎬濓紝浣犵殑App涓嶆槸緋葷粺 杞歡錛屾病鏈夌郴緇熺鍚嶏紝鎵浠ヨ繕鏄笉鑳借皟鐢紝闄ら潪錛屼綘root浜嗕綘鐨勬墜鏈猴紝鎶婁綘鐨刟pp瑁呭埌緋葷粺杞歡閲岄潰鍘伙紝鎵浠ヨ繖閲屼嬌鐢ㄥ彟澶栦竴縐嶆柟娉曞疄鐜拌嚜鍔ㄦ帴鍚繖涓涓?浜嗭紝璇︾粏濡備笅:

鍒氬紑濮嬫垜鐢ㄨ繖孌典唬鐮佺殑錛屽彂鐜頒笁鏄熸満鍨嬪彲浠ワ紝浣咹TC(濡? G10 , One X)涓嶈錛?/p>

 Intent intent = new Intent("android.intent.action.MEDIA_BUTTON");
 KeyEvent keyEvent 
= new KeyEvent(KeyEvent.ACTION_DOWN,  KeyEvent.KEYCODE_HEADSETHOOK);
 intent.putExtra(
"android.intent.extra.KEY_EVENT",keyEvent);
 sendOrderedBroadcast(intent,
"android.permission.CALL_PRIVILEGED");
 intent 
= new  Intent("android.intent.action.MEDIA_BUTTON");
 keyEvent 
= new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_HEADSETHOOK);
 intent.putExtra(
"android.intent.extra.KEY_EVENT",keyEvent);
 sendOrderedBroadcast(intent,
"android.permission.CALL_PRIVILEGED");



鍚庢潵鍙坓oogle鍒頒簡榪欐浠g爜錛岀粡榪囨祴璇曪紝瀹屽叏濂戒嬌..


Intent localIntent1 = new Intent(Intent.ACTION_HEADSET_PLUG);
localIntent1.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
localIntent1.putExtra(
"state"1);
localIntent1.putExtra(
"microphone"1);
localIntent1.putExtra(
"name""Headset");
CallingActivity.
this.sendOrderedBroadcast(localIntent1,"android.permission.CALL_PRIVILEGED");

Intent localIntent2 
= new Intent(Intent.ACTION_MEDIA_BUTTON);
KeyEvent localKeyEvent1 
= new KeyEvent(KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_HEADSETHOOK);
localIntent2.putExtra(
"android.intent.extra.KEY_EVENT",localKeyEvent1);
CallingActivity.
this.sendOrderedBroadcast(localIntent2,"android.permission.CALL_PRIVILEGED");

Intent localIntent3 
= new Intent(Intent.ACTION_MEDIA_BUTTON);
KeyEvent localKeyEvent2 
= new KeyEvent(KeyEvent.ACTION_UP,KeyEvent.KEYCODE_HEADSETHOOK);
localIntent3.putExtra(
"android.intent.extra.KEY_EVENT",localKeyEvent2);
CallingActivity.
this.sendOrderedBroadcast(localIntent3,"android.permission.CALL_PRIVILEGED");

Intent localIntent4 
= new Intent(Intent.ACTION_HEADSET_PLUG);
localIntent4.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
localIntent4.putExtra(
"state"0);
localIntent4.putExtra(
"microphone"1);
localIntent4.putExtra(
"name""Headset");
CallingActivity.
this.sendOrderedBroadcast(localIntent4,"android.permission.CALL_PRIVILEGED");


]]>
ndkhttp://www.shnenglu.com/guojingjia2006/archive/2012/05/05/173741.html灝忔灉瀛?/dc:creator>灝忔灉瀛?/author>Sat, 05 May 2012 07:02:00 GMThttp://www.shnenglu.com/guojingjia2006/archive/2012/05/05/173741.htmlhttp://www.shnenglu.com/guojingjia2006/comments/173741.htmlhttp://www.shnenglu.com/guojingjia2006/archive/2012/05/05/173741.html#Feedback0http://www.shnenglu.com/guojingjia2006/comments/commentRss/173741.htmlhttp://www.shnenglu.com/guojingjia2006/services/trackbacks/173741.htmlffmpeg  => http://abitno.me/compile-ffmpeg-android-ndk
http://hi.baidu.com/lizhengjun2010/blog/item/08b7fb1b79dc9befe1fe0b09.html


]]>
phpunithttp://www.shnenglu.com/guojingjia2006/archive/2012/05/04/173650.html灝忔灉瀛?/dc:creator>灝忔灉瀛?/author>Fri, 04 May 2012 03:39:00 GMThttp://www.shnenglu.com/guojingjia2006/archive/2012/05/04/173650.htmlhttp://www.shnenglu.com/guojingjia2006/comments/173650.htmlhttp://www.shnenglu.com/guojingjia2006/archive/2012/05/04/173650.html#Feedback0http://www.shnenglu.com/guojingjia2006/comments/commentRss/173650.htmlhttp://www.shnenglu.com/guojingjia2006/services/trackbacks/173650.html

鏈榪戠爺絀秔hp鐨勫崟鍏冩祴璇曞姛鑳斤紝鍦╟entos涓嬪拰widows涓嬪畨瑁呬簡phpunit

棣栧厛瑕佷繚璇佷綘瑁呯殑php涓畨瑁呬簡pear

linux涓嬭緭鍏ュ懡浠ear 鍥炶濺鍙湅涓涓嬫槸鍚﹀畨瑁呬簡

windows涓嬪彲浠ョ敤dos榪涘叆鍒皃hp鐨勫畨瑁呯洰褰?錛岃緭鍏ュ懡浠ear 鍥炶濺鍙湅涓涓嬫槸鍚﹀畨瑁呬簡 

鍦ㄩ粯璁ゆ儏鍐典笅php涓兘浼氬畨瑁呯殑

pear鐨勫畨瑁?/span>

wwindows涓嬬敤dos榪涘叆php鐨勫畨瑁呮牴鐩綍  榪愯go-pear錛宺鐒跺悗杈撳叆涓ゆyes 鐒跺悗 鍚庤竟鐨勯夐」鐩存帴鐢ㄥ洖杞?/span>

鐒跺悗鎴戜滑瑕佹坊鍔燙hannel

pear channel-discover pear.phpunit.de

pear channel-discover components.ez.no

pear channel-discover pear.symfony-project.com


鎴戝湪榪欎釜鍦版柟閬囧埌浜?nbsp;.lock 璁塊棶鏉冮檺鐨勯敊璇屽畨瑁呭け璐ワ紝榪欐槸鎴戜滑鍙互鍦≒EAR鏂囦歡澶逛笅鍒犻櫎姝ゆ枃浠?/span>

鎺ヤ笅鏉ユ墽琛宲ear install phpunit/PHPUnit錛屾鏃舵垜閬囧埌浜嗕笅鍥炬墍紺虹殑闂錛屽寘渚濊禆

寰堢畝鍗?鎴戜滑鎶婅繖浜涘寘鐢╬ear install鍛戒護瀹夎浜?鍗沖彲

鍙兘鎵ц瀹岃繖涓箣鍚庝綘鐨刾hpunit榪樻槸鎻愮ず瀹夎澶辮觸

瀹冩彁紺烘垜浠鏇存柊pear鍖?/span>

pear upgrade-all 

鎸夌収鎻愮ず鎿嶄綔錛屽彲鑳戒細鎻愮ず浣犳洿鏂癈hannel錛岄偅涔堟洿鏂板嵆鍙?/span>

姝ゆ椂鍦ㄦ墽琛宲ear install phpunit/PHPUnit 鍙互鐪嬪埌鎻愮ず瀹夎鎴愬姛浜?/span>



鎴戜滑浼氬彂鐜板湪PEAR鐩綍涓嬪浜哖HPUnit 榪欒〃鏄庡畨瑁呮垚鍔燂紝鍙﹀鍦ㄥ畨瑁卲ear鐨勬椂鍊欏洖淇敼php.ini鏂囦歡

;***** Added by go-pear

include_path=".;E:\webserver\php\pear"

;*****

灝忔彁紺猴細鐩存帴杈撳叆pear鍙幇瀹瀙ear鍛戒護涓嬬殑鎵鏈夐夐」

phpunit 浣跨敤鎵嬪唽 http://www.phpunit.de/manual/3.5/en/index.html



]]>
yii 璺敱http://www.shnenglu.com/guojingjia2006/archive/2012/03/20/168433.html灝忔灉瀛?/dc:creator>灝忔灉瀛?/author>Tue, 20 Mar 2012 12:59:00 GMThttp://www.shnenglu.com/guojingjia2006/archive/2012/03/20/168433.htmlhttp://www.shnenglu.com/guojingjia2006/comments/168433.htmlhttp://www.shnenglu.com/guojingjia2006/archive/2012/03/20/168433.html#Feedback0http://www.shnenglu.com/guojingjia2006/comments/commentRss/168433.htmlhttp://www.shnenglu.com/guojingjia2006/services/trackbacks/168433.html闃呰鍏ㄦ枃

]]>
寮婧愰」鐩綔鍔涙棤闄?OpenStack鍏ㄩ潰鐖嗗彂http://www.shnenglu.com/guojingjia2006/archive/2012/01/04/163551.html灝忔灉瀛?/dc:creator>灝忔灉瀛?/author>Wed, 04 Jan 2012 07:47:00 GMThttp://www.shnenglu.com/guojingjia2006/archive/2012/01/04/163551.htmlhttp://www.shnenglu.com/guojingjia2006/comments/163551.htmlhttp://www.shnenglu.com/guojingjia2006/archive/2012/01/04/163551.html#Feedback0http://www.shnenglu.com/guojingjia2006/comments/commentRss/163551.htmlhttp://www.shnenglu.com/guojingjia2006/services/trackbacks/163551.html濡傛灉涓鍒囨寜璁″垝榪涜錛岀孩甯?Red Hat)灝嗘垚涓虹涓瀹跺勾鏀跺叆瓚呰繃10浜跨編鍏冪殑寮婧愯蔣浠跺巶鍟嗐傝繖瀵逛簬寮婧愯蔣浠剁ぞ鍖哄皢鏄竴涓漿鎶樼偣銆傚紑婧愯蔣浠剁ぞ鍖轟竴鐩磋涓轟粬浠熀浜庣ぞ鍖虹殑寮鍙戞柟娉曟槸鍙鐨勩佺敋鑷蟲槸浼樿秺鐨勩佸彲鏇夸唬浼犵粺鐨勮蔣浠剁殑寮鍙戞柟寮忋?/p>

綰㈠附CEO鍚夊·鎬鐗硅但鏂壒(Jim Whitehurst)縐幫紝鎴戣涓猴紝鎴戜滑灝嗙湅鍒頒駭鐢熸妧鏈垱鏂扮殑鍦版柟灝嗗彂鐢熶竴涓牴鏈殑杞彉錛屼粠鍑犲杞歡鍏徃鐨勫疄楠屽杞悜搴炲ぇ鐨勫紑婧愯蔣浠剁殑鍔姏銆?/p>

闅忕潃Linux銆丄pache Web server銆丳erl銆丄pache銆丠adoop銆丱penOffice銆丟IMP鍜屽嚑鍗佷釜鍏跺畠鐨勫紑婧愯蔣浠惰鍒掔粰鍟嗕笟鎬ц蔣浠跺甫鏉ユ洿澶х殑鍘嬪姏錛屽紑婧愯蔣浠跺湪榪囧幓鐨勫嚑騫撮噷鑲畾緇欎笓鏈夎蔣浠朵笘鐣屽甫鏉ヤ簡娣蜂貢銆備絾鏄紝鏄庡ぉ鐨勫紑婧愯蔣浠剁殑閲嶉噺綰т駭鍝佹槸浠涔堬紵涓嬮潰鏄湪2012騫撮渶瑕佸瘑鍒囧叧娉ㄧ殑浜斾釜欏圭洰銆傝繖浜涢」鐩彲鑳芥瀯鎴愭柊鐨勪笟鍔″拰鏂扮殑琛屼笟鐨勫熀紜銆傝繖浜涢」鐩篃鍙兘鏄粎浠呭洜涓鴻兘澶熸洿瀹規槗鍦版垨鑰呮洿寤変環鍦板畬鎴愪換鍔¤屽彈鍒頒簡寮鍙戣呭拰綆$悊鑰呯殑鍏蟲敞銆?/p>

1.Nginx

鍦ㄨ繃鍘?0騫寸殑澶ч儴鍒嗘椂闂撮噷錛學eb鏈嶅姟鍣ㄨ蔣浠剁殑閫夋嫨涓鐩存槸紼沖畾鐨勩侫pache涓鐩村湪澶у鏁癢eb鏈嶅姟鍣ㄤ笂搴旂敤錛岃屽井杞殑IIS(浜掕仈緗戜俊鎭湇鍔?鐢ㄤ簬璁稿鍏跺畠鐨勬湇鍔″櫒銆傜劧鑰岋紝鍦ㄨ繃鍘葷殑鍑犲勾閲岋紝絎笁涓繘鍏ヨ繖涓競鍦虹殑Nginx鐨勫簲鐢ㄤ竴鐩村湪澧為暱錛屽洜涓鴻繖涓蔣浠惰兘澶熻交鏉懼鐞嗛珮瀹歸噺鐨勯氳銆?/p>

鎹甆ginx杞歡寮鍙戜漢鍛橀嫻嬶紝Nginx鐩墠宸茬粡鍦?000涓囦釜涓嶅悓鐨勪簰鑱旂綉鍩熷悕涓婅繍琛岋紝澶х害鍗犳暣涓簰鑱旂綉鐨?0%銆侼ginx鐗瑰埆騫挎硾鍦板簲鐢ㄤ簬閫氳閲忛潪甯稿ぇ鐨勭綉绔欙紝濡侳acebook銆乑appos銆丟roupon銆丠ulu銆丏ropbox鍜學ordPress銆傛涓嶅鎬紝榪欎釜杞歡鐨勫垱寤鴻呬紛鎴堝皵·瑗跨儲澶?Igor Sysoev)鍦?004騫磋璁ginx杞歡鐨勬椂鍊欏氨鏄笓闂ㄤ負澶勭悊澶ч噺鍚屾椂浣跨敤緗戠粶鐨勭敤鎴瘋璁$殑錛屾瘡鍙版湇鍔″櫒鏈澶氭湁1涓囦釜榪炴帴銆傝鍏徃鍏卞悓鍒涘浜哄畨寰烽瞾·闃胯幈鍏嬭阿鑰跺か(Andrew Alexeev)縐幫紝榪欐槸涓涓潪甯哥簿緇嗙殑鏋舵瀯銆侼ginx鍏徃鎻愪緵鍟嗕笟鐗堟湰鐨凬ginx杞歡銆?/p>

鍗沖皢鍒版潵鐨勪竴騫村皢鏄疦ginx鐨勪竴涓ソ騫存櫙銆侼ginx鍘誨勾浠庝竴浜涢闄╂姇璧勫叕鍙擱偅閲岃幏寰椾簡300涓囩編鍏冿紝鍏朵腑鍖呮嫭鎴村皵CEO榪堝厠灝?#183;鎴村皵(Michael Dell)鏀寔鐨勯闄╂姇璧勫叕鍙搞侼ginx涓嶫et-Stream鍚堜綔涓鴻蔣浠跺巶鍟嗙殑CDN(鍐呭浜や粯緗戠粶)杞歡鍖呮彁渚汵ginx杞歡銆傝鍏徃榪樹笌浜氶┈閫婂悎浣滀負AWS(浜氶┈閫奧eb鏈嶅姟)浜戞湇鍔′紭鍖朜ginx杞歡銆?/p>

闄や簡鐢ㄤ簬澶у瀷緗戠珯榪愯惀涔嬪錛岄樋鑾卞厠璋㈣跺か棰勮Nginx灝嗘洿騫挎硾鍦扮敤浜庢柊鍏寸殑浜戣綆楀拰鍏變韓鐨勬湇鍔″競鍦恒備粬璇達紝棰勮鍦ㄦ槑騫存帹鍑虹殑Nginx杞歡鐨勪笅涓涓噸瑕佺殑鍙戝竷鐗堝皢鏇撮傚悎鍏變韓鐨勬墭綆$幆澧冦傝繖涓蔣浠跺皢鑳藉鏇村ソ鍦板簲瀵瑰垎甯冨紡鎷掔粷鏈嶅姟鏀誨嚮騫朵笖灝嗛厤緗澶栫殑瀹夊叏鍔熻兘銆?/p>

2.OpenStack

OpenStack欏圭洰榪涘叆浜戣綆楅鍩熺殑鏃墮棿姣旇緝鏅氥備絾鏄紝榪欎釜欏圭洰鏈変竴涓笉鍙己灝戠殑鍔熻兘錛氬彲浼哥緝鎬с?/p>

OpenStack欏圭洰鏀跨瓥濮斿憳浼氫富甯箶綰蟲.·甯冭禆鏂?Jonathan Bryce)縐幫紝鎴戜滑姝e湪璋堣浣跨敤OpenStack榪愯涓涓嫢鏈?00鍙版湇鍔″櫒鎴栬?000鍙版湇鍔″櫒鐨勪簯銆傞偅閲岀殑鍏跺畠閫夋嫨紜疄娌℃湁鑰冭檻鍒拌繖涓妯°?/p>

鑷粠2010騫存帹鍑轟互鏉ワ紝OpenStack榪呴熻耽寰椾簡鎯犳櫘銆佽嫳鐗瑰皵鍜屾埓灝旂瓑浜戣綆楅鍩熺殑IT鍏徃鐨勬敮鎸併侽penStack鐨勮礎鐚呭枩嬈㈡妸鑷繁鐨勫伐浣滅О浣滃闀塊熷害鏈蹇殑寮婧愯蔣浠墮」鐩紝鍙傚姞鑰呭寘鎷?44瀹跺叕鍙稿拰2100澶氫漢銆傛埓灝旀帹鍑轟竴涓悕涓烘埓灝擮penStack浜戣В鍐蟲柟妗堢殑杞歡鍖咃紝鎶奜penStack涓庢埓灝旇嚜宸辯殑鏈嶅姟鍣ㄥ拰杞歡緇撳悎鍦ㄤ簡涓璧楓傛儬鏅篃鎺ㄥ嚭涓涓噰鐢ㄨ繖涓妧鏈殑嫻嬭瘯鐗堢殑鍏叡浜戞湇鍔°?/p>

OpenStack鐨勬牳蹇冪殑璁$畻緇勪歡鏄湪緹庡浗鑸ぉ灞鑹懼鏂爺絀朵腑蹇?Ames Research Center)涓哄瓨鍌ㄥぇ閲忕┖闂村浘鐗囩殑涓涓唴閮ㄤ簯寮鍙戠殑銆傛嵁鏇劇粡璐熻矗寮鍙慜penStack浜戞帶鍒跺櫒鍓嶈壘濮嗘柉鐮旂┒涓績CIO鍏嬮噷鏂?#183;鍧庢櫘(Chris Kemp)縐幫紝緹庡浗鑸ぉ灞綆$悊浜哄憳鍘熸潵璇曞浘浣跨敤Eucalyptus杞歡欏圭洰騫沖彴錛屼絾鏄紝鍙戠幇榪欎釜杞歡寰堥毦鍗囩駭鍒伴渶瑕佺殑姘村鉤銆?/p>

綆$悊鐨勬墭綆℃彁渚涘晢Rackspace鐨勯甯妧鏈畼綰︾堪·瀹夋牸鏂?John Engates)璇達紝涓轟簡甯姪鏇村箍娉涘湴搴旂敤錛孫penStack姝e湪閰嶇疆璁稿鏂扮殑鍔熻兘錛屼嬌榪欎釜杞歡鏇撮傚悎浼佷笟搴旂敤銆備竴涓悕涓?#8220;Keystone”鐨勯」鐩厑璁告満鏋勬妸OpenStack涓庤嚜宸辯殑韜喚綆$悊緋葷粺緇撳悎璧鋒潵錛屾垨鑰呬笌鍩轟簬寰蔣涓誨姩鐩綍鎴栬呭叾瀹僉DAP(杞誨瀷鐩綍璁塊棶鍗忚)鐨勮韓浠界鐞嗙郴緇熺粨鍚堣搗鏉ャ傛澶栵紝寮鍙戜漢鍛樹篃姝e湪涓鴻繖涓蔣浠跺紑鍙戜竴涓墠绔棬鎴楓俁ackspace榪樺皢鎶婅繖涓」鐩墺紱諱負涓涓畬鍏ㄧ嫭绔嬬殑瀹炰綋錛屽笇鏈涘畠鎴愪負鏇村鐨勪簯鎻愪緵鍟嗙殑涓涓浜虹殑閫夋嫨銆?/p>

瀹夋牸鏂О錛?011騫村皢鏄繖涓駭鍝佹墦鍩虹鐨勪竴騫淬備絾鏄紝鎴戣涓猴紝2012騫存垜浠皢鐪熸寮濮嬪埄鐢ㄨ繖涓熀紜鍦ㄨ澶氱鏈変簯鍜屽叕鍏變簯涓嬌鐢ㄣ?/p>

3.Stig

榪囧幓鐨勪竴騫存槸Cassandra銆丮ongoDB銆丆ouchDB鍜屾棤鏁板叾瀹冮潪鍏崇郴鏁版嵁搴撶殑搴旂敤鏄捐憲澧為暱鐨勪竴騫淬備絾鏄紝鍦?鏈堜喚涓捐鐨?#8220;NoSQL Now”浼氳涓婏紝浜轟滑鏇村璋堣鐨勬槸灝氭湭鍙戝竷鐨勬暟鎹瓨鍌⊿tig銆傚鏋滃垢榪愮殑璇濓紝鎴戜滑灝嗗湪2012騫寸湅鍒癝tig銆?/p>

Stig鐨勭淮鎶よ呯О錛孲tig鏄負紺句氦緗戠粶緗戠珯鐨勭嫭鐗圭殑宸ヤ綔閲忚璁$殑銆係tig鏄ぞ浜ょ綉緇滅綉绔橳agged鐨勮蔣浠跺伐紼嬪笀鏉版.·鍗㈠崱鏂?Jason Lucas)鍒涘緩鐨勩備粬鎶婅繖涓妧鏈О浣滃垎甯冨紡鍥捐〃鏁版嵁搴撱係tig鏃ㄥ湪鏀寔澶ч噺浜掑姩鐨勫拰紺句氦緗戠粶搴旂敤銆傝繖涓暟鎹晢搴楃殑鏋舵瀯鍏佽榪涜鎺ㄨ鎬х殑鎼滅儲錛屽厑璁哥敤鎴峰拰搴旂敤紼嬪簭鏌ユ壘淇℃伅鐨勪笉鍚岄儴鍒嗙殑鑱旂郴銆傜敱浜嶴tig鏄敤Haskell鍔熻兘緙栫▼璇█緙栧啓鐨勶紝瀹冭兘澶熻交鏉懼湴鎶婅嚜宸辯殑宸ヤ綔閲忓垎鏁e埌澶氬彴鏈嶅姟鍣ㄣ?/p>

Stig浠嶇劧鏈変竴浜涚縐樻劅錛屽洜涓哄畠鍒扮洰鍓嶄負姝㈣繕娌℃湁鍙戝竷銆備絾鏄紝瑙傚療浜哄+棰勬祴錛屽畠閫傚悎紺句氦緗戠粶鍜屽叾瀹冧繚鎸佸箍娉涚殑鏁版嵁鐨勫簲鐢ㄣ傚崲鍗℃柉瑙i噴璇達紝紺句氦緗戠粶鐨勯渶姹備粠涓寮濮嬪氨涓庡叾瀹冪被鍨嬬殑宸ヤ綔涓嶅悓錛屽洜姝ゅ皢鍙楃泭浜庨傚悎瀹冮渶姹傜殑鏁版嵁搴撱傚鏋滀笉鑳藉崌綰у埌琛屾槦鐨勮妯★紝浣犲湪榪欎釜棰嗗煙灝變笉鑳芥垚涓轟竴涓浉鍏崇殑鏈嶅姟銆?/p>

Stig鐩墠鍦═agged緗戠珯鐨勪竴鍙版湇鍔″櫒涓婅繍琛岋紝涓嶈繃錛岃鍏徃棰勮灝嗘妸Stig鎵╁ぇ搴旂敤涓鴻鍏徃鍞竴鐨勬暟鎹簱銆傚紑鍙戜漢鍛樺師璁″垝鍦?2鏈堝紑鏀捐繖涓蔣浠剁殑婧愪唬鐮侊紝浣嗘槸錛屽悗鏉ユ帹榪熷埌2012騫寸殑鏌愪釜鏃跺欍?/p>

鍜ㄨ鍏徃Kelly-McCreary & Associates鐨勮涔夎В鍐蟲柟妗堣璁″笀涓?#183;楹﹀厠閲?Dan McCreary)璇達紝鎴戠湅鍒扮殑鎯呭喌鏄潪甯告湁瓚g殑銆備粬璧炴壃榪欎釜鏁版嵁搴撶殑鍔熻兘璇█鏋舵瀯銆傝繖涓灦鏋勫皢浣胯繖涓暟鎹簱鍦ㄥ鍙版湇鍔″櫒涓婇儴緗叉洿鏂逛究銆?/p>

4.Linux Mint

灝界寮婧愯蔣浠舵敮鎸佽呯殑澶氬勾瀹d紶錛孡inux浠庢潵娌℃湁騫挎硾搴旂敤浜庡彴寮忕數鑴戙備絾鏄紝涓鐩存湁涓涓敤鎴峰弸濂界殑Linux鍙戝竷鐗堜綔涓烘浛浠e井杞疻indows鐨勮蔣浠跺湪浣跨敤銆傚湪鏈榪戝嚑騫達紝Canonical鍏徃鐨刄buntu宸茬粡瀹屾垚浜嗚嚜宸辯殑浠誨姟錛屽敖綆℃棩鐩婃祦琛岀殑Linux Min涔熻浼氬洜涓烘洿瀹規槗浣跨敤鑰岃秴榪嘦buntu銆?/p>

杞歡宸ョ▼甯堝厠鑾遍棬鐗?#183;鍕掕垂甯冨皵(Clement Lefebvre)鍦ㄨ瘎浼頒簡鍦ㄧ嚎璁哄潧涓殑鍚勭Linux鍙戝竷鐗堜箣鍚庨鍏堝垱寤轟簡Linux Mint銆傚嫆璐瑰竷灝斿湪榪欎釜宸ヤ綔涓駭鐢熶簡鍦ㄨ繖涓悊鎯崇殑鍙戝竷鐗堜腑搴旇鏈変粈涔堝姛鑳界殑鎯蟲硶銆傚氨鍍廋anonical涓鴻嚜宸遍潪甯告祦琛岀殑Ubuntu鎰熻阿Debian Linux鍙戝竷鐗堜竴鏍鳳紝鍕掕垂甯冨皵鎶奤buntu浣滀負Linux Mint鐨勫熀紜銆傜幇鍦紝Linux Mint欏圭洰寰楀埌浜嗘崘鐚呯殑璧勯噾銆佽嚜宸辯綉绔欑殑騫垮憡鏀跺叆鍜屾潵鑷敤鎴鋒悳绱㈢殑鏀跺叆銆傛渶鍚庝竴欏規敹鍏ユ槸閫氳繃涓嶥uckDuckGo寤虹珛鐨勪竴涓湁浜夎鐨勫悎浣滃疄鐜扮殑銆?/p>

Linux Mint鏄粎闇瑕佹闈㈡搷浣滅郴緇熻屼笉鎯充簡瑙f洿澶氱殑Linux宸ヤ綔鍘熺悊鐨勭敤鎴瘋璁$殑銆傝繖涓柟娉曚嬌瀹夎鍜岃繍琛岃繖涓蔣浠墮潪甯稿鏄擄紝緇存姢涔熶笉鎴愰棶棰樸傛洿鑳滆繃Ubuntu鐨勬槸錛孡inux Mint寮鴻皟杞繪澗鐨勪嬌鐢ㄦэ紝鍦ㄦ柊鍔熻兘璇佹槑鑷繁鍊煎緱浣跨敤涔嬪墠錛屼竴鑸笉浣跨敤鏂扮殑鍔熻兘銆?/p>

渚嬪錛孡inux Mint閬垮紑鏈変簺浜夎鐨?#8220;Unity”妗岄潰鐣岄潰銆侰anonical搴旂敤榪欎釜鐣岄潰鏇磋交鏉懼湴鎶奤buntu縐繪鍒扮Щ鍔ㄥ鉤鍙般傜浉鍙嶏紝Linux Mint鍧氭寔浣跨敤鏇寸煡鍚嶇殑鍜屾洿鎴愮啛鐨凣nome鐣岄潰銆?/p>

浜嬪疄涓婏紝鐢變簬Ubuntu鐨勪激瀹籌紝榪欑涓ユ牸鍧氭寔鍙敤鎬х殑鍋氭硶涔熻鏈夊姪浜嶭inux Mint銆侺inux Mint縐板畠鐨勬搷浣滅郴緇熸槸鍏ㄧ悆鎺掑悕絎洓浣嶇殑妗岄潰鎿嶄綔緋葷粺錛屼粎嬈′簬Windows銆佽嫻鏋淢ac鍜孶buntu銆傚湪榪囧幓鐨勪竴騫撮噷錛孡inux Mint鍦―istroWatch Linux鏂伴椈緗戠珯浜х敓鐨勭綉欏墊祻瑙堥噺鐢氳嚦瓚呰繃浜哢buntu銆傝繖涓寚鏍囧弽鏄犱簡Linux鍙戝竷鐗堢殑嫻佽紼嬪害銆傛鏃犵枒闂紝2012騫村皢鐪嬪埌Linux Mint鏇村鐨勫闀褲?/p>

5. Gluster

綰㈠附鑳藉緇欏瓨鍌ㄨ蔣浠墮鍩熷甫鏉ュ畠鏇劇粰Unix鎿嶄綔緋葷粺甯傚満甯︽潵鐨勯偅縐嶉潻鍛芥х殑鍙樺寲鍚?浠婂勾10鏈堬紝綰㈠附鏀惰喘浜嗗紑婧愯蔣浠跺叕鍙窯luster銆傝繖瀹跺叕鍙稿埗浣滅殑寮婧愯蔣浠禛lusterFS涓旀枃浠剁郴緇熻兘澶熸妸鍟嗗搧鍖朣ATA(涓茶楂樼駭鎶鏈檮浠?紜洏鍜孨AS(緗戠粶闄勫姞瀛樺偍)緋葷粺榪炴帴鍒板ぇ瑙勬ā鐨勫彲浼哥緝鐨勫瓨鍌ㄦ睜銆傜孩甯借鍒掍嬌鐢ㄥ畠鍗犻Linux鎿嶄綔緋葷粺甯傚満鐨勬柟娉曠粺娌誨瓨鍌ㄩ鍩熴?/p>

鎹孩甯紺EO鍚夊·鎬鐗硅但鏂壒縐幫紝瀛樺偍杞歡甯傚満姣忓勾鏀跺叆杈?0浜跨編鍏冿紝涓嶈繃錛岃繖涓嶆槸綰㈠附瀵硅繖涓妧鏈劅鍏磋叮鐨勫師鍥犮傜浉鍙嶏紝綰㈠附鎰熷叴瓚g殑鏄壘鍒頒竴縐嶈兘澶熶嬌浜戣縼縐繪洿鏂逛究鐨勫瓨鍌ㄦ妧鏈備粬璇達紝鎴戜滑瀵繪壘涓浜涘紑婧愯蔣浠惰兘澶熶綔涓烘洿寮哄ぇ鐨勬妧鏈垱鏂扮殑鏂瑰紡鐨勫湴鏂廣傛垜浠鍦ㄥ鎵句竴浜涜兘澶熺泩鍒╃殑鍦版柟銆傚湪榪欐柟闈紝榪樻病鏈夊叾瀹冪殑瑙e喅鏂規銆?/p>

榪欎釜杞歡宸茬粡鏈変竴浜涘闀垮娍澶達紝鑷沖皯鍦ㄧ鐞嗗憳涓嬭澆鍜屾祴璇曡繖涓蔣浠舵柟闈㈡槸濡傛銆傚湪榪囧幓鐨勪竴騫撮噷錛孏lusterFS鐨勪笅杞介噺澧為暱浜?00%銆傚湪浠婂勾11鏈堬紝榪欎釜杞歡鐨勪笅杞芥鏁拌秴榪囦簡3.7涓囨銆?/p>

]]>
YIIhttp://www.shnenglu.com/guojingjia2006/archive/2011/12/02/161321.html灝忔灉瀛?/dc:creator>灝忔灉瀛?/author>Fri, 02 Dec 2011 05:16:00 GMThttp://www.shnenglu.com/guojingjia2006/archive/2011/12/02/161321.htmlhttp://www.shnenglu.com/guojingjia2006/comments/161321.htmlhttp://www.shnenglu.com/guojingjia2006/archive/2011/12/02/161321.html#Feedback0http://www.shnenglu.com/guojingjia2006/comments/commentRss/161321.htmlhttp://www.shnenglu.com/guojingjia2006/services/trackbacks/161321.htmlhttp://www.yiiframework.com/
http://www.yiiframework.com/doc/guide/1.1/zh_cn/quickstart.what-is-yii
http://yp.oss.org.cn/blog/show_resource.php?resource_id=774
http://www.yiieye.com/book_cn/
http://blog.csdn.net/dxxgiupel/article/details/5803864
http://wenku.baidu.com/view/7d7d65ecaeaad1f346933fb5.html


]]>
甯哥敤閾炬帴http://www.shnenglu.com/guojingjia2006/archive/2010/08/12/123165.html灝忔灉瀛?/dc:creator>灝忔灉瀛?/author>Thu, 12 Aug 2010 03:56:00 GMThttp://www.shnenglu.com/guojingjia2006/archive/2010/08/12/123165.htmlhttp://www.shnenglu.com/guojingjia2006/comments/123165.htmlhttp://www.shnenglu.com/guojingjia2006/archive/2010/08/12/123165.html#Feedback0http://www.shnenglu.com/guojingjia2006/comments/commentRss/123165.htmlhttp://www.shnenglu.com/guojingjia2006/services/trackbacks/123165.htmlhttp://www.kernel.org/pub/linux/kernel/v2.6/
STLPort:http://sourceforge.net/projects/stlport/



]]>
sun java 鐜鍙橀噺(杞?http://www.shnenglu.com/guojingjia2006/archive/2010/08/11/123070.html灝忔灉瀛?/dc:creator>灝忔灉瀛?/author>Wed, 11 Aug 2010 07:27:00 GMThttp://www.shnenglu.com/guojingjia2006/archive/2010/08/11/123070.htmlhttp://www.shnenglu.com/guojingjia2006/comments/123070.htmlhttp://www.shnenglu.com/guojingjia2006/archive/2010/08/11/123070.html#Feedback0http://www.shnenglu.com/guojingjia2006/comments/commentRss/123070.htmlhttp://www.shnenglu.com/guojingjia2006/services/trackbacks/123070.html鏂規涓錛氶氳繃婧愬畨瑁?/p>

1銆佸畨瑁?/p>

鎵撳紑緇堢錛屾墽琛屼互涓嬪懡浠わ紝鎴栦嬌鐢ˋdept/鏂扮珛寰楄蔣浠剁鐞嗗櫒錛屽湪鍏朵腑鍒嗗埆鎼滅儲"sun-java6-jre"鍜?sun-java6-jdk"騫? 鏍囪瀹夎銆?/p>

$ sudo apt-get install sun-java6-jdk

鎻愮ず錛氬畨瑁呰繃紼嬩腑闇瑕佷綘鍥炵瓟鏄惁鍚屾剰浣跨敤鍗忚錛堢粓绔腑綰㈣摑鑹茬殑鎻愮ず鐣岄潰錛夛紝姝ゆ椂鎸塼ab閿嚦OK錛屽啀鎸夊洖杞﹀嵆鍙甯稿畨瑁呫?/p>

璁劇疆褰撳墠榛樿鐨刯ava緙栬瘧鍣細

$ sudo update-alternatives --config java

a銆佸鏋滀綘鐨勭郴緇熶笂棰勮鏈塷penjdk錛屽皢鍑虹幇濡備笅鏄劇ず鐨勪俊鎭細

鐜版湁 2 涓彲閫夐」錛屽畠浠兘鎻愪緵浜?#8220;java”<

    閫夋嫨        鍙夐」
-----------------------------------------------
 +        1    /usr/lib/jvm/java-6-openjdk/jre/bin/java
*          2    /usr/lib/jvm/java-6-sun/jre/bin/java

瑕佺淮鎸佺己鐪佸糩*]錛屾寜鍥炶濺閿紝鎴栬呴敭鍏ラ夋嫨鐨勭紪鍙鳳細

杈撳叆 鏈夊寘鍚?"sun" 鐨勮鐨勫墠闈㈢殑鏁板瓧銆傚涓婇潰鏄劇ず錛屽垯杈撳叆2錛岀劧鍚庡洖杞︾‘瀹氥?/p>

b銆佸鏋滀綘緋葷粺娌℃湁java鐜錛屽垯鍑虹幇濡備笅鏄劇ず淇℃伅錛?/p>

鍙湁涓涓▼搴忔彁渚?java
錛?usr/lib/jvm/java-6-openjdk/jre/bin/java錛夈傛棤欏誨仛浠諱綍閰嶇疆銆?/p>

 

$ sudo update-alternatives --config javac

a銆佸鏋滀綘鐨勭郴緇熶笂棰勮鏈塷penjdk錛屽皢鍑虹幇濡備笅鏄劇ず鐨勪俊鎭細

鐜版湁 2 涓彲閫夐」錛屽畠浠兘鎻愪緵浜?#8220;javac”<

    閫夋嫨        鍙夐」
-----------------------------------------------
          1    /usr/lib/jvm/java-6-sun/bin/javac
*+       2    /usr/bin/gcj-wrapper-4.3

瑕佺淮鎸佺己鐪佸糩*]錛屾寜鍥炶濺閿紝鎴栬呴敭鍏ラ夋嫨鐨勭紪鍙鳳細

杈撳叆 鏈夊寘鍚?"sun" 鐨勮鐨勫墠闈㈢殑鏁板瓧銆傚涓婇潰鏄劇ず錛屽垯杈撳叆1錛岀劧鍚庡洖杞︾‘瀹氥?/p>

b銆佸鏋滀綘緋葷粺娌℃湁java鐜錛屽垯鍑虹幇濡備笅鏄劇ず淇℃伅錛?/p>

鍙湁涓涓▼搴忔彁渚?java
錛?usr/bin/gcj-wrapper-4.3錛夈傛棤欏誨仛浠諱綍閰嶇疆銆?/p>

 

2銆侀厤緗甹ava鐜鍙橀噺

$ sudo gedit /etc/environment


鍦ㄥ叾涓坊鍔犲涓嬩袱琛岋細
----------------------------------------------------------------------------
CLASSPATH=.:/usr/lib/jvm/java-6-sun/lib
JAVA_HOME=/usr/lib/jvm/java-6-sun

------------------------------------------------------------------------------

2銆佸畨瑁?

灝嗕笅杞戒笅鏉ョ殑bin鏂囦歡澶嶅埗鍒?opt鐩綍涓嬶紙鍋囪浣犱笅杞藉悗鐨刡in鏂囦歡鏀懼湪/home/yourname涓嬶級錛?緇堢鎵ц錛?br>
$ sudo cp /home/yourname/jdk-6u13-linux-i586.bin /opt 銆?br>
瀹夎鎵ц錛?br>
$ sudo /opt/jdk-6u13-linux-i586.bin 銆?br>
瀹夎榪囩▼涓細鎻愮ず鏄惁鍚屾剰鍗忚錛屾寜涓媞閫鍑烘祻瑙堬紝鐒跺悗杈撳叆"yes"錛岀瓑瀹夎瀹屾瘯鍚庝細鑷姩鍦?opt

鏂囦歡澶逛笅鍒涘緩涓涓猨dk1.6.0_13鐨勬枃浠跺す錛屽畨瑁呯殑鏂囦歡閮芥斁鍦ㄨ鐩綍涓嬨?/p>

]]>
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
      <noscript id="pjuwb"></noscript>
            <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
              <dd id="pjuwb"></dd>
              <abbr id="pjuwb"></abbr>
              欧美中文在线观看| 精品成人a区在线观看| 麻豆成人精品| 国产精品免费观看在线| 亚洲国产高清在线观看视频| 国产亚洲精品aa| 一区二区三区高清不卡| 亚洲欧洲精品天堂一级| 久久久综合网| 久久久噜噜噜久久人人看| 国产精品区二区三区日本| 99视频热这里只有精品免费| 亚洲精品日韩久久| 欧美高清视频免费观看| 欧美大片在线观看一区| 尤物精品在线| 久久久噜噜噜久久中文字幕色伊伊| 久久久久久久999精品视频| 国产精品视频专区| 亚洲欧美久久久久一区二区三区| 亚洲主播在线播放| 国产精品国产三级国产普通话蜜臀 | 久久男女视频| 国产精品主播| 性欧美在线看片a免费观看| 久久成人18免费网站| 国产欧美三级| 欧美在线视频观看| 另类春色校园亚洲| 国产视频在线观看一区二区| 午夜在线成人av| 久久人人精品| 亚洲国产经典视频| 欧美激情 亚洲a∨综合| 日韩视频在线一区| 亚洲欧美综合网| 国内精品免费在线观看| 久久久精品免费视频| 欧美激情亚洲激情| av成人毛片| 国产精品女人网站| 久久不射网站| 亚洲电影av在线| 亚洲天堂偷拍| 国产一区二区三区av电影| 久久偷窥视频| 亚洲开发第一视频在线播放| 亚洲欧美精品伊人久久| 国产亚洲欧美色| 欧美成人综合一区| 一区二区日韩伦理片| 久久久999精品| 亚洲精品乱码视频| 国产精品一区二区a| 久久精品亚洲热| 亚洲免费精彩视频| 久久视频在线免费观看| 亚洲美女电影在线| 国产视频久久久久| 欧美福利网址| 午夜视黄欧洲亚洲| 亚洲欧洲日韩综合二区| 欧美亚洲一级片| 亚洲日本欧美在线| 国产欧美韩国高清| 欧美极品一区| 久久精品国产亚洲aⅴ| 日韩一区二区久久| 免费观看日韩av| 亚洲欧美日韩在线观看a三区 | 一区二区视频欧美| 国产精品v欧美精品∨日韩| 久久美女性网| 欧美一区二区精品| 一区二区三欧美| 亚洲二区视频| 另类成人小视频在线| 午夜欧美视频| 亚洲视频久久| 亚洲青色在线| 一区二区三区我不卡| 国产精品成人国产乱一区 | 久久九九免费| 亚洲免费影视第一页| 亚洲精品黄色| 欧美成人激情视频免费观看| 欧美中文字幕第一页| 亚洲一二三区精品| 日韩视频免费| 亚洲精品久久嫩草网站秘色| 精品成人一区二区三区| 国产日韩专区在线| 国产美女精品免费电影| 国产精品久久久久久久久免费樱桃| 欧美大香线蕉线伊人久久国产精品| 久久国产精品毛片| 欧美中文在线视频| 欧美一级成年大片在线观看| 亚洲综合国产| 亚洲一区二区三区四区在线观看| 一区二区三区精品久久久| 日韩一级免费| 一区二区冒白浆视频| 在线视频欧美一区| 亚洲深夜福利在线| 亚洲色诱最新| 亚洲综合视频网| 亚洲欧美制服另类日韩| 先锋影音一区二区三区| 性色av香蕉一区二区| 久久福利电影| 久久嫩草精品久久久精品| 久久综合综合久久综合| 欧美jizzhd精品欧美喷水| 美女91精品| 欧美日韩不卡| 国产九色精品成人porny| 国产免费亚洲高清| 国模精品一区二区三区| 在线观看日韩av| 亚洲美女淫视频| 亚洲一区二区三区在线| 欧美制服丝袜| 欧美成年视频| 一本久道综合久久精品| 亚洲一区二区av电影| 久久国产精品一区二区三区四区| 久久视频在线看| 欧美日韩国产麻豆| 国产欧美日韩一区二区三区在线观看 | 国产真实久久| 狠狠色狠狠色综合日日tαg| 亚洲国产精品视频一区| 夜夜夜久久久| 久久精品国产亚洲一区二区| 久色成人在线| 亚洲精品美女91| 午夜精品一区二区三区在线播放 | 欧美一区二区观看视频| 久久综合久久美利坚合众国| 亚洲国内欧美| 欧美一区二区高清在线观看| 欧美超级免费视 在线| 国产精品久久久久久久一区探花| 韩国三级电影一区二区| 一区二区av| 久久久久国产精品午夜一区| 亚洲日韩视频| 久久精品国产一区二区三| 欧美乱人伦中文字幕在线| 国产亚洲综合在线| 一本色道久久综合一区| 久久全国免费视频| 99热在这里有精品免费| 狂野欧美激情性xxxx| 国产精品一区二区你懂得| 亚洲美女尤物影院| 久久久久99| 亚洲一区二区久久| 欧美黄色影院| 亚洲大片免费看| 久久av一区二区| 一区二区三区高清| 欧美极品aⅴ影院| 亚洲高清在线精品| 久久精品夜色噜噜亚洲a∨| 日韩午夜电影av| 欧美成人精品三级在线观看| 国产性天天综合网| 午夜精品久久久久久久久| 亚洲欧洲日产国产综合网| 久久综合中文| 狠狠干狠狠久久| 久久精品99久久香蕉国产色戒| 亚洲美女区一区| 欧美成人综合网站| 亚洲国产欧美日韩| 免费观看久久久4p| 久久久久久91香蕉国产| 国产亚洲福利社区一区| 久久国产精品亚洲va麻豆| 亚洲一级黄色片| 欧美午夜激情视频| 亚洲午夜电影网| 99精品欧美一区二区三区| 欧美日韩免费高清一区色橹橹| 亚洲美女视频| 亚洲精品极品| 欧美色网在线| 亚洲综合视频在线| 一区二区三区久久| 国产精品久久久久久久久久三级| 亚洲天堂网在线观看| 在线视频欧美一区| 国产精品一区二区久久久久| 欧美一区午夜精品| 久久国产精品色婷婷| 亚洲成人原创| 亚洲精品综合| 国产精品欧美日韩一区二区|