FCGI :: spawn.FASTCGI ÇÁ·ÎÅäÄÝÀ»À§ÇÑ ÇÁ·Î¼¼½º °ü¸®ÀÚ / ÀÀ¿ë ÇÁ·Î±×·¥ ¼¹ö | |
Áö±Ý ´Ù¿î·Îµå |
FCGI :: spawn. ¼øÀ§ ¹× ¿ä¾à
±¤°í
- ƯÇã:
- Perl Artistic License
- °¡°Ý:
- FREE
- °Ô½ÃÀÚ À̸§:
- Peter Vereshagin
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~veresc/
FCGI :: spawn. ű×
FCGI :: spawn. ¼³¸í
FastCGI ÇÁ·ÎÅäÄÝÀ»À§ÇÑ ÇÁ·Î¼¼½º °ü¸®ÀÚ / ÀÀ¿ë ÇÁ·Î±×·¥ ¼¹ö FCGI :: SpawnÀº FastCGI ÇÁ·Î¼¼½º °ü¸®ÀÚ·Î »ç¿ëÇÏ´Â µ¥ »ç¿ëµÇ´Â Perl ¸ðµâÀÔ´Ï´Ù. FCGI :: PROCMANAGER´Â FCGI :: PROCMANAGER°¡ Æ÷Å©µé »çÀÌ¿¡¼ º¹»çµÇ´Â ¾²±â ¸Þ¸ð¸® °øÀ¯¿Í ÇÁ·Î¼¼½º ¹øÈ£¿Í ÃÖ´ë¿Í °°Àº ´ÜÀÏ ÀÔ·Â ¸Å°³ º¯¼ö¸¦ »ç¿ëÇÏ¿© FCGI :: PROCMANAGER°¡ WEB SERVER ADMINAL »ç¿ëÀÚ°¡ ÀÚü FASTCGI ¼¹ö¸¦ ±¸ÃàÇϱâÀ§ÇÑ À¥ ¼¹ö °ü¸®ÀÚ ÀÌÇØ °¡´É ÀνºÅϽº·Î Ÿ°ÙÆÃÇÕ´Ï´Ù. Fork ´ç ¿äûÀº À¥ ¼¹ö (FastCGI requester)°¡ °¡¸®Å°´Â ÆÄÀÏÀ» ½ÇÇàÇÒ ¼ö ÀÖ´Ù´Â °ÍÀÔ´Ï´Ù. ±×·¡¼ ¿ì¸®´Â È£½ºÆÃÀ»À§ÇÑ Áغñ°¡ µÈ µ¥¸óÀ» °¡Áö°í ÀÖ½À´Ï´Ù. È®½ÇÇÑ Ä¡·á°¡ FCGI¿¡¼ ÂïÀº °ÍÀÔ´Ï´Ù :: º¸¾È¿¡ »ê¶õÇÕ´Ï´Ù. ÀÔ·Â ¸Å°³ º¯¼ö·Î »ç¿ëµÇ´Â ·ÎÄà UNIX ¼ÒÄÏÀÇ inode ¼³Á¤ ¿Ü¿¡µµ MAX_REQUESTS ¸Å°³ º¯¼ö°¡ MAXREQUESTS ApacheÀÇ °¥·¡ MPM ¸Å°³ º¯¼ö¿Í ÇØ´ç ÇöÀç ¿äû Ä«¿îÅÍ °ª¿¡ ´ëÇÑ Æ¯ÆÄ¿øÀ» º¯°æÇÏÁö ¾Êµµ·Ï »ç¿ëÀÚ¸¦ È£½ºÆÃÇÏÁö ¾ÊÀ¸·Á¸é Àü¼ú ÇÑ max_requests ¸Å°³ º¯¼öµµ ÇÊ¿äÇÕ´Ï´Ù. Æ÷Å©ÀÇ ¸Þ¸ð¸® ´©¼ö°¡ Çϵå¿þ¾î¿¡ ȸ°è µÈ ¸ðµç RAMÀ» ¼ÒºñÇÏÁö ¾Êµµ·Ï ¼º´ÉÀ» °ü¸®ÇÕ´Ï´Ù. °øÀ¯ È£½ºÆà ½Ã½ºÅÛ °ü¸®ÀÚ°¡ ÇÁ·Î¼¼½º °ü¸®ÀÚ µð¸Õ ½ºÅ©¸³Æ® ÄÁÅÙÃ÷¸¦ ÇØ´ç »ç¿ëÀÚ Çϵå¿þ¾î ¼Òºñ Á¦ÇÑÀ¸·Î Á¦¾îÇÏ°í »ç¿ëÀÚÀÇ ÀÚ°Ý Áõ¸íÀ¸·Î ½ÇÇàÇÏ´Â °ÍÀ¸·Î °¡Á¤ÇÕ´Ï´Ù. E. g. »ç¿ëÀÚ´Â µ¥¸ó¿¡°Ô ½ÅÈ£¸¦ º¸³»·Á¸é µ¥¸ó¿¡°Ô ½ÅÈ£¸¦ º¸³»·Á¸éÀÌ / ±×³àÀÇ ¿ä±¸¿¡ ´ëÇØ Á¤»óÀûÀ¸·Î Àç½ÃÀÛÀ» ½ÃÀÛÇϰųª ÀÌÇàÀº ¾ÆÁ÷ ¼öÇàµÇÁö ¾ÊÀ½À» º¯°æÇϰųª °ü¸®ÀÚ°¡ µð¸Õ ½ºÅ¸ÅÍ ½ºÅ©¸³Æ®¸¦ Àç½ÃÀÛÇÏÁö ¾Ê°í Ưº°È÷ Çã¿ë ÇÒ ¼ö ÀÖ½À´Ï´Ù. (±× µÎ °¡Áö ±â´É ¸ðµÎ°¡ ¹Ì·¡¿¡ ¼öÇà µÇ·Á°íÇÕ´Ï´Ù). ¿¹¸¦ µé¾î, »ç¿ëÀÚ´Â ÀÚü ¼Ò½º¸¦ ´Ù½Ã ÄÄÆÄÀÏÇÏ°í clean_inc_hash¸¦ ½Å¼ÓÇÏ°Ô º¯°æÇÏ·Á°í ÇÒ ¼ö ÀÖ½À´Ï´Ù. È£Ãâ ½ºÅÃÀ» »ç¿ëÇÏ¸é ½ºÅ©¸³Æ® ½ÇÇà¿¡ ´ëÇÑ ÀÚ½ÅÀÇ ÄÚµå ÂüÁ¶¸¦ ¼³Á¤ÇÒ ¼öÀÖ°Ô ÇØÁÖ´Â Perl ÄÄÆÄÀÏ Ä³½Ã°¡ ¼ÒÀ¯ÇÏ°íÀÖ´Â ³ôÀº Preconformance ¿ä±¸ »çÇ× »çÀÌÀÇ ±ÔÄ¢¿¡ ´ëÇؼ´Â ´Ù½Ã ÄÄÆÄÀÏÀ» ÅëÇÑ µð¹ö±ë µð¹ö±ë PHP°¡ Á¦°øÇÏ´Â ¸ðµç ¿äû¿¡¼ CLEAN_INC_SUBNAMSEPACE ±â´ÉÀ» »ç¿ëÇϸé DBI ¹× ÇÁ·¹ÀÓ ¿öÅ©¿Í °°Àº Å×½ºÆ® ¼Ò½º¸¦ ´Ù½Ã ÄÄÆÄÀÏÇÏÁö ¾ÊÁö¸¸ ÀÀ¿ë ÇÁ·Î±×·¥ °³¹ß¿¡ ´ëÇÑ °³¹ß¿¡ ÃÊÁ¡À» ¸ÂÃß¾î ÀÀ¿ë ÇÁ·Î±×·¥ (µé) ³×ÀÓ ½ºÆäÀ̽º·Î Àç ÄÄÆÄÀÏÀ» Á¦ÇÑÇÕ´Ï´Ù ( s) ¸¸. ÀÌ´Â °³¹ß ȯ°æ¿¡¼ À¯¿ë ÇÒ ¼ö ÀÖÀ¸¸ç Àç ÄÄÆÄÀÏÀ»º¸´Ù ´ú ÇÊ¿ä·ÎÇÏ´Â ÄÚµå AdaptaionÀÇ ¼¼ºÎ »çÇ×À» ´õ ºü¸£°Ô ¼öÇà ÇÒ ¼ö ÀÖµµ·Ï Àç ÄÄÆÄÀÏÀ»º¸´Ù ºü¸£°í ºü¸£°Ô ºü¸£°Ô ¸¸µé ¼ö ÀÖ½À´Ï´Ù. ÀÌ°ÍÀº vÀÇ »õ·Î¿î ±â´ÉÀÔ´Ï´Ù. 0.14Every ´Ù¸¥ ÀÏÀº FCGI :: PROCMANAGER DOCS.MINIMATION ¹ÌÈ®ÀÎ ¹æ½ÄÀ¸·Î ¼³¸íµÇ¾î ÀÖ½À´Ï´Ù. IT ÀÛ¾÷ : FCGI :: SpawnÀ» »ç¿ëÇϽʽÿÀ. ³» $ spawn = fcgi :: spawn-> new (); $ spawn -> »ê¶õ; »ý»ê ¿ëµµ·Î ÀÌ°ÍÀ» ³ÖÁö ¸¶½Ê½Ã¿À. ÀÌ°ÍÀº À¥ ¼¹öÀÇ »ç¿ëÀÚ ID (¶Ç´Â umask°¡ 022°¡ ¾Æ´Ñ °æ¿ì)·Î ½ÇÇàµÇ¾î¾ßÇÏ¸ç ±âº» ¼ÒÄÏ ÆÄÀÏ À̸§ ÀÎ /tmp/spawner.sock¿¡¼ FastCGI¸¦ ¿äûÇϵµ·Ï À¥ ¼¹ö¸¦ ±¸¼ºÇؾßÇÕ´Ï´Ù. À¥ ¼¹ö°¡ ¾Æ´Ñ ´Ù¸¥ »ç¿ëÀÚ·Î ½ÇÇàÇÏ°í ÀûÀýÇÑ SOCK_CHMOD / SOCK_CHOWN ¸Å°³ º¯¼ö¸¦ ¼³Á¤ÇϽʽÿÀ. BUGZILLALLA·Î ¸¸Á·À» ¾òÀ¸·Á¸é ... BUGZILLA°¡ BugzillaÀÇ ÀÚ½ÅÀÇ Bugzilla°¡ ¾Æ´Ñ Bugzilla°¡ FastCGI¿Í ÇÔ²² ÀÛµ¿ÇÏÁö ¾Ê´Â °÷ÀÌ ¾ø½À´Ï´Ù. ±×·¯³ª webgui.org¿Í µ¿ÀÏÇÏ°Ô Àû¿ëµË´Ï´Ù. 6.9 ¹öÀüÀº mod_perl2¸¦ ¾ö°ÝÇÏ°Ô ¿ä±¸Çϵµ·Ï°¬½À´Ï´Ù. OK, ±×·¯³ª ¹öÀü 6.8Àº ÃÖ¼ÒÇÑ http://alpha.vereshagin.org¿¡¼ Àß ÀÛµ¿ÇÕ´Ï´Ù. ÀÌ°ÍÀº http://cr.yp.to : #! / usr / bin / perl -w¸¦ »ç¿ëÇÏ¿© DaemontoolsÀÇ °æ¿ì ³» ./runÀÔ´Ï´Ù. °æ°í¸¦ »ç¿ëÇϽʽÿÀ. lib '/ path / to / modules'¸¦ »ç¿ëÇϽʽÿÀ. WebGui¸¦ »ç¿ëÇϽʽÿÀ; À̹ÌÁö »ç¿ë :: magick; À׾ »ç¿ëÇϽʽÿÀ; $ sig {__ die__} = sub {print @ _; PRINT CARP :: LONGMESS}; $ env {fcgi_socket_path} = "/ path/to/spawner.sock"; eval (fcgi :: spawn; "»ç¿ë); ³» $ fcgi = »õ CGI; eval $ {fcgi :: spawn :: plsrc ( '/the/path/to/some.pl.fpl')}}; Undef $ FCGI; ³» $ spawn = fcgi :: spawn-> new ({n_processes => 7, sock_cholsess => , sock_chmod => 0660, max_requests => 200,}); $ spawn -> spawn; ±×¸®°í fastcgi perl ½ºÅ©¸³Æ®¸¦ »ý¼ºÇÏ´Â ÃÖ¼Ò Á¦¾È µÈ ¹æ¹ýÀº ´ÙÀ½°ú °°½À´Ï´Ù. #! / usr / bin / perl -w $ env {fcgi_socket_path} = "/ path/to/spawner.sock"; eval (fcgi :: spawn; "»ç¿ë); ³» $ spawn = fcgi :: spawn-> new ({n_processes => 7}); $ spawn -> spawn; ¿©±â¿¡ Daemontools ½Ã¼³À» Æ÷¼ÁÀ¸·ÎÇÏ´Â °ÍÀÌ ´õ ½¬¿î ¹æ¹ýÀÔ´Ï´Ù : $ cat ./env/fcgi_socket_path /tmp/spawner.sock $ cat ./run #! / bin / sh exec 2> 1 exec envdir. / env su fcgi -c './fcgi-run'$ cat ./fcgi-run #! / usr / usr / bin / perl -w fcgi :: spawn; ³» $ spawn = fcgi :: spawn-> new (); $ spawn -> spawn; ¿ä±¸ »çÇ× : ¡¤ Perl.
FCGI :: spawn. °ü·Ã ¼ÒÇÁÆ®¿þ¾î