thinkphp runtimeÍÉ»¯Ôõô°ì
×î½ü£¬ÔÚʹÓÃthinkphp¾ÙÐпª·¢µÄÀú³ÌÖУ¬ÎÒÓöµ½ÁËÒ»¸öÎÊÌ⡪¡ªruntimeÍÉ»¯¡£Õâ¸öÎÊÌâ¿ÉÄÜÊÇÓɶ෽ÃæµÄÔµ¹ÊÔÓÉÒýÆðµÄ£¬ÕâÒ²ÈÃÎÒ»¨Á˲»ÉÙʱ¼äÀ´ÕÒ³ö½â¾öÒªÁì¡£ÔÚ±¾ÎÄÖУ¬ÎÒ½«·ÖÏíÎÒµÄÂÄÀú£¬Ï£Íû¶ÔÓöµ½Õâ¸öÎÊÌâµÄÈËÓÐËù×ÊÖú¡£
Ê×ÏÈ£¬ÈÃÎÒÃÇÏÈÏàʶһÏÂʲôÊÇruntime¡£¼òÆÓÀ´Ëµ£¬runtimeÊÇÖ¸³ÌÐòÔËÐÐʱµÄÔÝʱÎļþ¼Ð£¬°üÀ¨»º´æ¡¢ÈÕÖ¾¡¢ÔÝʱÎļþµÈ¡£ÔÚThinkPHPÖУ¬runtimeÊÇÓÉÓ¦ÓóÌÐò×Ô¶¯ÌìÉúµÄ£¬ËüλÓÚÓ¦ÓóÌÐò¸ùĿ¼ÏµÄruntimeÎļþ¼ÐÖС£ÈôÊÇÕâ¸öÎļþ¼ÐÓÐȨÏÞÎÊÌâ»òÕß·ºÆðÆäËûÒì³££¬¾Í¿ÉÄܵ¼Ö³ÌÐòÍÉ»¯¡£
ÄÇô£¬µ±ÎÒÃÇÔÚʹÓÃThinkPHP¾ÙÐпª·¢µÄʱ¼ä£¬ÔõÑù½â¾öruntimeÍÉ»¯µÄÎÊÌâÄØ£¿ÒÔÏÂÊǼ¸¸ö¿ÉÄܵĽâ¾öÒªÁ죺
¼ì²éȨÏÞ
Ê×ÏÈ£¬ÎÒÃÇÐèÒª¼ì²éÒ»ÏÂruntimeÎļþ¼ÐµÄȨÏÞ¡£Õâ¸öÎÊÌâ¿ÉÄÜÔÚLinuxϵͳÉÏÔ½·¢³£¼û£¬ÓÉÓÚLinuxϵÄÎļþȨÏÞ½ÏÁ¿ÑÏ¿á¡£ÈôÊÇruntimeÎļþ¼ÐµÄȨÏÞÉèÖò»×¼È·£¬¾Í¿ÉÄܵ¼Ö³ÌÐòÎÞ·¨Ð´È뻺´æ¡¢ÈÕÖ¾µÈÔÝʱÎļþ¡£ÎÒÃÇ¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁîÀ´Éó²éÎļþ¼ÐµÄȨÏÞ£º
ls -l
µÇ¼ºó¸´ÖÆ
ÈôÊÇruntimeÎļþ¼ÐȨÏÞȱ·¦£¬ÎÒÃÇ¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁîÀ´ÐÞ¸ÄȨÏÞ£º
Á¬Ã¦Ñ§Ï°¡°PHPÃâ·ÑѧϰÌõ¼Ç£¨ÉîÈ룩¡±£»
chmod 777 runtime
µÇ¼ºó¸´ÖÆ
ÕâÌõÏÂÁî»á½«runtimeÎļþ¼ÐµÄȨÏÞÉèÖÃΪËùÓÐÓû§¶¼¿É¶Á¿Éд¿ÉÖ´ÐС£ËäÈ»£¬ÈôÊÇÄúµÄЧÀÍÆ÷ÉÏÓжà¸öÓû§£¬Õâ¸öȨÏÞÉèÖÿÉÄܱ£´æÇå¾²Òþ»¼£¬Äú¿ÉÒÔƾ֤ÏÖÕæÏàÐÎÉèÖúÏÊʵÄȨÏÞ¡£
Çå¿Õ»º´æ
ÈôÊÇÄúÔÚÐ޸ĴúÂëºó·ºÆðÁËruntimeÍÉ»¯µÄÇéÐΣ¬ÄÇôÄú¿ÉÒÔʵÑéÇå¿Õ»º´æ¡£»º´æÎļþÊÇÖ¸ÔÚÓ¦ÓóÌÐòÔËÐÐÀú³ÌÖлº´æµÄÐÅÏ¢£¬ÈçÒ³ÃæµÄHTML´úÂë¡¢Êý¾Ý¿âÅÌÎÊЧ¹ûµÈ¡£ÔÚThinkPHPÖУ¬»º´æÎļþĬÈÏÉúÑÄÔÚruntime/cacheÎļþ¼ÐÖУ¬Äú¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁîÀ´Çå¿Õ»º´æ£º
php think clear
µÇ¼ºó¸´ÖÆ
ÈôÊÇÄúµÄÓ¦ÓóÌÐò´úÂëÊÇ°²ÅÅÔÚÔ¶³ÌЧÀÍÆ÷Éϵģ¬Äú¿ÉÒÔʹÓÃÒÔÏÂÏÂÁÇëÈ·±£ÄúÒѾ½øÈëµ½ÄúµÄÓ¦ÓóÌÐòĿ¼ÖУº
php think clear --remote
µÇ¼ºó¸´ÖÆ
ÕâÌõÏÂÁî»áÇå¿ÕÔ¶³ÌЧÀÍÆ÷ÉϵĻº´æÎļþ¡£
¼ì²é´úÂë
runtimeÍÉ»¯Ò²ÓпÉÄÜÊÇÓÉ´úÂëÖеÄÎÊÌâÒýÆðµÄ¡£ÔÚ¾ÙÐдúÂ뿪·¢µÄÀú³ÌÖУ¬ÎÒÃÇÐèÒª¼á³Ö´úÂëµÄÇåÎú¡¢¹æ·¶ºÍ¾«Á·¡£ÈôÊÇÄúÔÚ¿ª·¢Àú³ÌÖÐûÓÐ×¢Öص½ÕâЩÎÊÌ⣬¾ÍÓпÉÄܵ¼Ö³ÌÐòÍÉ»¯¡£Òò´Ë£¬ÄúÐèÒª×Ðϸ¼ì²é´úÂëÖÐÊÇ·ñ±£´æÒÔÏÂÎÊÌ⣺
Óï·¨¹ýʧ
ƴд¹ýʧ
Âß¼¹ýʧ
±äÁ¿ÃüÃû²»¹æ·¶
ÕâЩ¹ýʧ¿ÉÄܻᵼÖÂϵͳÎÞ·¨Õý³£ÔËÐУ¬Òò´ËÐèÒª×Ðϸ¼ì²é¡£
¼ì²éÉèÖÃ
ÔÚThinkPHPÖУ¬ÄúÐèҪ׼ȷÉèÖÃÏà¹ØµÄÉèÖÃÏ²»È»Ò²ÓпÉÄܵ¼ÖÂruntimeÍÉ»¯¡£ÄúÐèҪȷÈÏÒÔÏÂÉèÖÃÏîÊÇ·ñ׼ȷ£º
Êý¾Ý¿âÅþÁ¬ÉèÖÃ
URLģʽÉèÖÃ
CookieÉèÖÃ
SessionÉèÖÃ
Äú¿ÉÒÔÔÚÓ¦ÓóÌÐòµÄconfigĿ¼ÖÐÕÒµ½Ïà¹ØµÄÉèÖÃÎļþ£¬È»ºóÈ·ÈÏÏà¹ØÉèÖÃÏîÊÇ·ñ׼ȷ¡£
×ÛÉÏËùÊö£¬runtimeÍÉ»¯µÄÔµ¹ÊÔÓÉÊǶàÖÖ¶àÑùµÄ£¬ÎÒÃÇÐèÒªÕë¶ÔÏêϸÇéÐÎÕÒµ½½â¾öÒªÁì¡£ÈôÊÇÄúÓöµ½ÁËÕâ¸öÎÊÌ⣬¿ÉÒÔʵÑéͨ¹ýÒÔÉÏÒªÁìÀ´¾ÙÐнâ¾ö¡£ËäÈ»£¬ÄúÒ²¿ÉÒÔÔÚThinkPHPµÄ¹Ù·½ÎĵµÖÐÕÒµ½¸ü¶àµÄ½â¾öÒªÁ죬½¨ÒéÄúÈÏÕæÔĶÁÎĵµ²¢ÍŽá×ÔÉíÏÖÕæÏàÐξÙÐнâ¾ö¡£ÐÅÍÐÖ»ÒªÄú¾ÓÉÒ»·¬Æð¾¢£¬¾Í¿ÉÒԺܿìµØ½â¾öÕâ¸öÎÊÌâ¡£
ÒÔÉϾÍÊÇthinkphp runtimeÍÉ»¯Ôõô°ìµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡