ʹÓÃImageMagicK¸øͼƬ¼Óˮӡ
×î½üÓиöÏîÄ¿ÐèÒª¸øͼƬÔö¼Óˮӡ£¬ÐÂÔöµÄͼƬ»¹ºÃ˵£¬ÀϵÄͼƬ¾ÍµÃµ¥¶À´¦ÀíÁË¡£ÏÂÃæ¾ÍÁ˽âÒ»ÏÂʹÓÃImageMagic¸øͼƬÔö¼Ó²»Í¬µÄˮӡ¡£
Ç°¶Îʱ¼ä¸ãÁËÒ»ÏÂapacheµÄssl£¬½ñÌìÓÐʱ¼ä°ÑnginxµÄÒ²¸ãÁËһϡ£¹ØÓÚÖ¤ÊéµÄÉú³ÉÔÚÕâ¶ù¾Í²»¶à˵ÁËÁË£¬Çë²Î¿¼Ç°Ãæд¹ýµÄopenssl½¨Á¢Ö¤Ê飬·Ç³£ÏêϸÅäÖÃssl+apache£¬±¾ÎÄÓõÄÖ¤Êé¾ÍÊÇÇ°¶Îʱ¼äÓÃopensslÉú³ÉµÄ¡£
Step 1. Create key (password protected)
openssl genrsa -out prvtkey.pem 1024/2048 (with out password protected) ...
Squid,Nginx,Lighttpd·´Ïò´úÀíµÄÇø±ð
·´Ïò´úÀí´Ó´«ÊäÉÏ·Ö¿ÉÒÔ·ÖΪ2ÖÖ£º
1£ºÍ¬²½Ä£Ê½(apache-mod_proxyºÍsquid)
2£ºÒ첽ģʽ(lighttpd ºÍ nginx)
À©³ä·Ö²¼Ê½ÏµÍ³HadoopµÄÇ¿´ó¹¤¾ß×éºÏ
Apache»ù½ð»á¹æ»®µÄHadoopÌåϵÖл¹ÓÐÐí¶àÅ£BµÄÖܱ߷½°¸£¬Èç¿ÉÖ§³ÖSQLÓï·¨µÄHive£¬²»¶®JavaÒ²ÄÜ׫дMapReduceµÄPig£¬ÕâЩ¶¼ÊÇ¿ª·¢Õß²»ÄÜ´í¹ýµÄHadoopÏà¹Ø·½°¸Å¶¡£
redisÖ÷´Ó¸´ÖÆÅäÖúÍʹÓö¼·Ç³£¼òµ¥¡£Í¨¹ýÖ÷´Ó¸´ÖÆ¿ÉÒÔÔÊÐí¶à¸öslave serverÓµÓкÍmaster serverÏàͬµÄÊý¾Ý¿â¸±±¾¡£
Redisѧϰ֮Sorted-SetsÊý¾ÝÀàÐͽéÉÜ
redisÊÇÒ»¸ökey-value´æ´¢ÏµÍ³¡£ºÍMemcachedÀàËÆ£¬ËüÖ§³Ö´æ´¢µÄvalueÀàÐÍÏà¶Ô¸ü¶à£¬°üÀ¨string(×Ö·û´®)¡¢list(Á´±í)¡¢set(¼¯ºÏ)ºÍzset(ÓÐÐò¼¯ºÏ)¡£ÕâЩÊý¾ÝÀàÐͶ¼Ö§³Öpush/pop¡¢add/remove¼°È¡½»¼¯²¢¼¯ºÍ²î¼¯¼°¸ü·á¸»µÄ²Ù×÷£¬¶øÇÒÕâЩ²Ù×÷¶¼ÊÇÔ×ÓÐԵġ£ÔÚ´Ë»ù´¡ÉÏ£¬...
ʹÓÃMemcache´æ´¢Ò»Ð©×¢Òâµã
MemcacheʹÓÃÁËSlab AllocatorµÄÄÚ´æ·ÖÅä»úÖÆ:°´ÕÕÔ¤Ïȹ涨µÄ´óС£¬½«·ÖÅäµÄÄÚ´æ·Ö¸î³ÉÌض¨³¤¶ÈµÄ¿é£¬ÒÔÍêÈ«½â¾öÄÚ´æËéƬÎÊÌâ
dz̸SquidÔÚͼƬ´æ´¢¼Ü¹¹ÖеÄÓ¦ÓÃ
½«½ü¿ìÒ»¸öÔÂûдÎÄÕÂÁË£¬Ì«ÀÁÉ¢ÁË£¬½ñÌìÕñ×÷ÁËһϣ¬Ð´ÁËƪ¹ØÓÚSquidµÄÎÄÕ£¬Squid×÷Ϊ·Ö²¼Ê½´úÀí»º´æ·þÎñÆ÷ÕæµÄ·Ç³£µÄ°ô£¬Ï£Íû±¾ÎĶÔÄãÓаïÖú¡£
ÔËά±ØÐëÒªÖªµÀµÄ¼¸¸ö Linux ·þÎñÆ÷¼à¿ØÃüÁî
Èç¹ûÄãÊǸöÔËά¹ÜÀíͬѧ£¬Èç¹ûÄãÏëÖªµÀÄãµÄ·þÎñÆ÷ÕýÔÚ×ö¸Éʲô£¬Äã¾ÍÐèÒªÁ˽âһЩ»ù±¾µÄÃüÁһµ©Ä㾫ͨÁËÕâЩÃüÁÄÇÄã¾ÍÊÇÒ»¸ö רҵµÄ Linux ϵͳ¹ÜÀíÔ±¡£
ÓÉ12306.cn̸̸ÍøÕ¾ÐÔÄܼ¼Êõ
12306.cnÍøÕ¾¹ÒÁË£¬±»È«¹úÈËÃñÂîÁË¡£ÎÒÕâÁ½ÌìÒ²ÔÚ˼¿¼Õâ¸öÊ£¬ÎÒÏëÒÔÕâ¸öÊÂÀ´´ÖÂԵغʹó¼ÒÌÖÂÛÒ»ÏÂÍøÕ¾ÐÔÄܵÄÎÊÌâ¡£ÒòΪ²Ö´Ù£¬¶øÇÒÍêÈ«»ùÓÚ±¾ÈËÓÐÏ޵ľÑéºÍÁ˽⣬ËùÒÔ£¬Èç¹ûÓÐʲôÎÊÌ⻹Çë´ó¼ÒÒ»ÆðÌÖÂÛºÍÖ¸Õý¡££¨ÕâÓÖÊÇһƪ³¤ÎÄ£¬Ö»ÌÖÂÛÐÔÄÜÎÊÌ⣬²»ÌÖÂÛÄÇЩUI£¬ÓÃ...
°ÙÍò¼¶PHPÍøÕ¾¼Ü¹¹¹¤¾ßÏä½éÉÜ
Poppen.deÊǵ¹úµÄÒ»¸öÉç½»ÍøÕ¾£¬Ïà¶ÔFacebook¡¢FlickrÀ´ËµÊÇÒ»¸öºÜСµÄÍøÕ¾£¬µ«ËüÓÐÒ»¸öºÜºÃµÄ¼Ü¹¹£¬ÈÚºÏÁ˺ܶ༼Êõ£¬½ñÌìÎÒÃǾÍÀ´Á˽âһϸÃÕ¾µãµÄ¼Ü¹¹¼¼Êõ¡£
memcacheq¶ÓÁзþÎñ°²×°ÓëÔÀí
¡¡¡¡MemcacheÊÇÒ»¸ö¸ßÐÔÄܵķֲ¼Ê½µÄÄÚ´æ¶ÔÏ󻺴æϵͳ£¬Í¨¹ýÔÚÄÚ´æÀïά»¤Ò»¸öͳһµÄ¾Þ´óµÄhash±í£¬ËüÄܹ»ÓÃÀ´´æ´¢¸÷ÖÖ¸ñʽµÄÊý¾Ý£¬°üÀ¨Í¼Ïñ¡¢ÊÓƵ¡¢ÎļþÒÔ¼°Êý¾Ý¿â¼ìË÷µÄ½á¹ûµÈ¡£¼òµ¥µÄ˵¾ÍÊǽ«Êý¾Ýµ÷Óõ½ÄÚ´æÖУ¬È»ºó´ÓÄÚ´æÖжÁÈ¡£¬´Ó¶ø´ó´óÌá¸ß¶ÁÈ¡Ëٶȡ£
Nginx + PHP-FPM + APC=¾øÃîµÄ×éºÏ
±¾ÎĽ«½éÉÜÄ¿Ç°ÈÃPHP×î¿ìµÄ·½·¨£ºNginx + PHP-FPM + APC£¬¿´ËÆÓÐЩ¸´ÔÓ£¬Êµ¼ÊÉÏÎÒÃÇÖ»ÐèÒª¼¸¸ö²½Öè¾Í¿ÉÒÔÍê³É£¬²¢ÇÒÐÔÄÜÔ¶³¬Apache£¬ÓÐÐËȤµÄÅóÓѲ»·ÁÈ¥ÊÔÒ»ÊÔ¡£