CodeigniterÔÚCLIÏÂÖ´ÐÐÕ¼ÓÃÄÚ´æ¹ý´óÎÊÌâ
ʹÓÃcodeigniter CLIÏÂÖ´ÐÐÒ»¸ö1000wÌõµÄÊý¾Ýµ¼ÈëÎÊÌ⣬һֱ³öÏÖÄÚ´æ¹ý¸ß£º
Ö´Ðйý³ÌÖÐͨ¹ýtop²é¿´ÄÚ´æʹÓÃ×´¿ö£¬·¢ÏÖÄÚ´æÒ»Ö±ì¸ß£¬ÐĻţ¬Ã¿´¦Àí20wan×óÓÒ£¬½Å±¾¾ÍÒòΪÄÚ´æ¹ý¸ß×Ô¶¯Í˳ö¡£
¾ÅŲé¾ÓÈ»ÊÇÕâ¸ö¿Ó£º´ò¿ªsystem/database/DB_driver.php ¿´µ½£º
CI db»á½«ËùÓеIJéѯsqlºÍºÍsqlÖ´ÐÐʱ¼ä±£´æÏÂÀ´£¬ÎªÁËdebug¡£¹Ø¼üÊÇÕâ¸ö$save_queriesΪTRUE£¬ÔÚconfigÖв¢Ã»Óйرտª¹Ø¡£
ÔÙ¿´¿´ÎÒÉÏÃæµÄÖ´Ðнű¾£¬400ÍòµÄÊý¾Ý£¬Ã¿Ìõ¼Ç¼»áÖ´ÐÐ7Ìõsql£¬Ò²¾ÍÊÇ˵£¬Èç¹ûÒªÖ´ÐÐÍêÕâ¸ö½Å±¾£¬2800ÍòÌõsql¼Ç¼»á±»±£´æÔÚÄÚ´æÖУ¬MB£¬10GÄڴ涼²»¹»¡£
½â¾ö°ì·¨1£º
µ±ÄãÖ´ÐдóÊýÁ¿µÄdb²Ù×÷ʱ£¬¼ÇµÃ£º
$this->db->save_queries = FALSE;
½â¾ö°ì·¨2£º
ÐÞ¸ÄÊý¾Ý¿âÅäÖÃÎļþ£¬config/database.php£¬Ôö¼Ósave_queriesÑ¡ÏÈçÏ£º
$db['default']['save_queries'] = FALSE;
ÍƼöÐÅÏ¢
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- php³£ÓÃÕýÔò±í´ïʽ
- phpÐÔÄܼà²âÄ£¿éXHProf
- ÈÃCI¿ò¼ÜÖ§³Öservice²ã
- ʹÓÃPHPÉú³É´øLOGOµÄ¸öÐÔ»¯¶þάÂëͼÏñ
- ¹ØÓÚCodeIgniterÄã¿ÉÄܲ»ÖªµÀµÄ5¸ö֪ʶµã
- Memcache ºÁÃ뼶³¬Ê±¼°ÆäËû³£¼ûÎÊÌâ»ã×Ü
- [PHP±Ê¼Ç]PHPQueryÒ»¸ö´¦ÀíDOMµÄÀûÆ÷
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- PHP»ñÈ¡Óû§µÄÕæʵIP£¬²¢ÅжÏÊÇ·ñÄÚÍøIP
- PHP ´íÎóÈÕÖ¾ error_log
- ÀûÓÃbigpipe»úÖÆʵÏÖÒ³ÃæÄ£¿éµÄÒì²½äÖȾ chunked¼¼Êõ
- php¿ØÖÆÎļþÏÂÔØËÙ¶È
- js + php ¶ÁÈ¡¡¢²¥·ÅÊÓƵÁ÷ ¼æÈÝfirefox£¬c....
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- UNICODE Óë UTF-8 µÄ¹Øϵ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- phpʹÓÃmb_detect_encoding¼ì²â×Ö·û´®±àÂë
ÆÀÂÛ