ü\Óü¿Æ¼¼Íø

 ÕÒ»ØÃÜÂë
 Á¢¼´×¢²á
mito
²é¿´: 2015|»Ø¸´: 9

[PHP] »ùÓÚEasySwooleºÍElasticSearch¿ª·¢¸ßÐÔÄÜËÑË÷·þÎñÊÓÆµ½Ì³Ì

[¸´ÖÆÁ´½Ó]

8Íò

Ö÷Ìâ

608

»ØÌû

27Íò

»ý·Ö

¹ÜÀíÔ±

Rank: 9Rank: 9Rank: 9

»ý·Ö
275170
QQ
·¢±íÓÚ 2019-2-14 21:08:18 | ÏÔʾȫ²¿Â¥²ã |ÔĶÁģʽ
¿Î³ÌÃû³Æ: »ùÓÚEasySwooleºÍElasticSearch¿ª·¢¸ßÐÔÄÜËÑË÷·þÎñÊÓÆµ½Ì³Ì

¿Î³ÌĿ¼£º
  
µÚ1Õ ¿Î³Ì¸ÅÊö
±¾Õ½éÉܿγ̼¼Êõµã¡¢ÐèÒªµÄ»·¾³×¼±¸ÒÔ¼°easyswooleµÄ¼ò½é£¬Èôó¼ÒÇáËÉÕÆÎտγ̵ÄÌØÉ«£¬Ã÷ȷѧºÃ±¾Ãſεļ¼Êõ´¢±¸¡£


1-1 µ¼Ñ§
1-2 easyswoole¼ò½é
1-3 »·¾³×¼±¸ÒÔ¼°¿Î³Ì¼¼Êõµã½éÉÜ
µÚ2Õ EasySwoole¿ò¼Ü¿ìËÙÉÏÊÖ
±¾Õ½²½âeasyswooleµÄ°²×°¡¢easyswooleµÄ½á¹¹·ÖÎö¡¢easyswoole µÄÆäËüÌØÐÔÒÔ¼° ʵսµÚÒ»¸öeasyswoole·þÎñ£¬´øÁì´ó¼Ò¿ìËÙÉÏÊÖES¿ò¼Ü¡£


2-1 easyswoole°²×°ÒÔ¼°½á¹¹·ÖÎö
2-2 easyswoole»ù±¾Ê¹ÓÃ
2-3 easyswooleÉîÈëʹÓÃ
2-4 EasySwoole½áºÏMysqlʹÓÃ
µÚ3Õ ÐÔÄܲâÊÔ
±¾Õ»á½éÉÜΪʲôҪѧϰÐÔÄܲâÊÔ¡¢ÐÔÄܲâÊÔ¹¤¾ßabµÄ½éÉÜ¡¢ab²âÊÔÏêϸ½²½âÒÔ¼° ×îºó²ú³öeasyswoole httpÐÔÄܲâÊÔ±¨¸æ£¬´øÄãÉîÈëÀí½âÐÔÄܲâÊÔµÄÕæÚС£


3-1 ÐÔÄܲâÊÔ½éÉÜ
3-2 ab¹¤¾ß°²×°ÒÔ¼°Ïêϸ½²½â
µÚ4ÕÂ Íæ×ª¸ßÐÔÄÜÏûÏ¢¶ÓÁзþÎñ
±¾Õ½²½âÏûÏ¢¶ÓÁС¢Ñ§Ï°ÏûÏ¢¶ÓÁеÄÔ­Òò¡¢³£ÓÃÏûÏ¢¶ÓÁнéÉÜÒÔ¼°Ê¹Óó¡¾°½âÅÙÒÔ¼°ÀûÓÃeasySwoole´òÔì¸ßÐÔÄÜÏûÏ¢¶ÓÁзþÎñ¡£


4-1 ΪʲôҪѧϰÏûÏ¢¶ÓÁÐ
4-2 Redis×¼±¸¹¤×÷
4-3 Redisµ×²ãÀà¿â·â×°
4-4 Redisµ×²ãÀà¿â·â×°ÓÅ»¯
4-5 ÒýÈë¸ßÐÔÄÜÅäÖÃÎļþ·þÎñ
4-6 ½â¶Áeasyswoole½ø³ÌÒÔ¼°redisµÄlist
4-7 Éú²úÕß Ïû·ÑÕß¶ËÒµÎñ±àд
µÚ5Õ СÊÓÆµ·þÎñƽ̨ - ǰºó¶Ë·ÖÀëÒÔ¼°Æ½Ì¨ºó¶ËÕûÌå¼Ü¹¹
±¾Õ½éÉÜÊÓÆµ¡¢ÊÓÆµ¼¼ÊõÕ»¡¢ÊÓÆµÉÏ´«¹¦ÄÜ¿ª·¢¡¢ÐÔÄÜÓÅ»¯ÒÔ¼°ÀûÓÃeasyswoole¸ßÐÔÄÜÏûÏ¢¶ÓÁд¦ÀíÊÓÆµÉÏ´«´¦ÀíÈÎÎñ¡£


5-1 ǰºó¶Ë·ÖÀë½éÉÜ
5-2 ǰ¶Ë»·¾³°²×°ÒÔ¼°Ò³Ã沿Êð
5-3 ǰ¶ËÒ³Ãæ¹¹½¨ÒÔ¼°ÈÃNginx ÇëÇóת·¢µ½swoole·þÎñÆ÷
5-4 СÊÓÆµ·þÎñƽ̨ÕûÌå¼Ü¹¹
µÚ6Õ ÀûÓÃEasySwoole´¦ÀíСÊÓÆµÒµÎñ
±¾Õ½éÉÜÊ×Ò³ÊÓÆµÒ³Ãæ¡¢ÀûÓÃeasyswoole¿ª·¢Ê×Ò³ÊÓÆµAPIÒµÎñ¡¢¸ß²¢·¢ÏÂÐÔÄÜÓÅ»¯-Ê×Ò³Ò³ÃæAPIÊý¾ÝÓÅ»¯µÈ£¬´ø´ó¼ÒʹÓÃeasyswooleµÄwebsocket´òÔìСÊÓÆµÐÅÏ¢ÍÆËÍ·þÎñ¡£


6-1 СÊÓÆµ½éÉÜ
6-2 ¿ª·¢Á÷³Ì½éÉÜ
6-3 ÊÓÆµÉÏ´«µ½±¾µØ
6-4 ÊÓÆµÉÏ´«µ½±¾µØÓÅ»¯·½°¸1
6-5 ÊÓÆµÉÏ´«µ½±¾µØÓÅ»¯·½°¸2
6-6 ÊÓÆµ·âÃæÍ¼¹¦ÄÜÉÏ´«
6-7 ÀûÓ÷´Éä»úÖÆÓÅ»¯´¦ÀíÉÏ´«Îļþ˼Ïë
µÚ7Õ ´òÔì¸ßÐÔÄÜAPI·þÎñϵͳ - EasySwoole APIƪ
±¾Õ½²½âswoole table³¡¾°ÔÚAPI¸ß²¢·¢ÏµÄʹÓÃÒÔ¼°ÐÔÄÜ·ÖÎö¡¢API³¡¾°ÏÂÈçºÎÀûÓÃSwooleµÄÒì²½ÈÎÎñ¸ßЧµÄ´¦ÀíÏà¹ØÍ³¼Æ¼°API³¡¾°ÏÂÈçºÎÀûÓÃSwooleµÄЭ³Ì¸ßЧ´¦ÀíÏà¹ØÍ³¼ÆµÈ£¬´øÄã´¦ÀíAPI³¡¾°ÏµĶàÖÖÒµÎñ¡£


µÚ8Õ ÀûÓÃEasySwooleºÍElasticSearch´òÔì¸ßÐÔÄܵÄСÊÓÆµËÑË÷·þÎñ
±¾Õ½éÉܸßÐÔÄÜ·Ö²¼Ê½ elasticsearch¡¢¼¼ÊõÑ¡ÐÍ¡¢ jdk»ñÈ¡ºÍ°²×°¡¢esµ¥»ú°²×°ºÍ·Ö²¼Ê½°²×° ¡¢easyswoole¼¯³ÉelasticearchµÈ£¬´ø´ó¼Òʵսeasyswoole²ãºÍelasticsearch²ãÓÅ»¯ËÑË÷·þÎñ¡£


µÚ9Õ ÐÔÄܵ÷ÓÅ - ÈÃϵͳÇáÇáËÉËÉÓ¦¶Ô¸ß²¢·¢
±¾Õ½øÐÐÐÔÄܵ÷ÓÅ£¬´øÄãÉîÈëÕÆÎո߲¢·¢¼¼Êõ£¬ÇáËÉ´¦Àí¸ß²¢·¢ÒµÎñ¡£


µÚ10Õ ¿Î³Ì×ܽá



  ÏÂÔØµØÖ·£º
Óοͣ¬Èç¹ûÄúÒª²é¿´±¾ÌûÒþ²ØÄÚÈÝÇë»Ø¸´


¸ü¶àÌû×ÓÍÆ¼ö

»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

18255038968 ¸ÃÓû§Òѱ»É¾³ý
·¢±íÓÚ 2019-2-15 20:50:18 | ÏÔʾȫ²¿Â¥²ã
Ìáʾ: ×÷Õß±»½ûÖ¹»òɾ³ý ÄÚÈÝ×Ô¶¯ÆÁ±Î
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

0

Ö÷Ìâ

2Íò

»ØÌû

4Íò

»ý·Ö

½ûÖ¹·ÃÎÊ

»ý·Ö
41607
·¢±íÓÚ 2021-10-9 15:09:03 | ÏÔʾȫ²¿Â¥²ã
Ìáʾ: ×÷Õß±»½ûÖ¹»òɾ³ý ÄÚÈÝ×Ô¶¯ÆÁ±Î
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

0

Ö÷Ìâ

7174

»ØÌû

1Íò

»ý·Ö

ÌåÑéVIP

Rank: 7Rank: 7Rank: 7

»ý·Ö
14686
·¢±íÓÚ 2022-6-14 21:31:27 | ÏÔʾȫ²¿Â¥²ã
Ï൱²»´í
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

QQ|Archiver|ÊÖ»ú°æ|ü\Óü¿Æ¼¼Íø

GMT+8, 2025-11-30 17:38 , Processed in 0.303871 second(s), 27 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

¿ìËٻظ´ ·µ»Ø¶¥²¿ ·µ»ØÁбí