尊龙凯时人生就是搏

thinkphp²»ÉúÑÄ»º´æ

½üÄêÀ´£¬Ëæ×ÅÅÌËã»úÊÖÒÕµÄÒ»Ö±Éú³¤£¬ÍøÕ¾ÐÔÄÜÓÅ»¯³ÉΪԽÀ´Ô½Ö÷ÒªµÄ»°Ìâ¡£¶ø»º´æÊÖÒÕÕýÊÇÓÅ»¯ÍøÕ¾ÐÔÄܵÄÖ÷ÒªÊÖ¶ÎÖ®Ò»¡£È»¶ø£¬ÓÐʱ¼äÎÒÃÇ»áÓöµ½Ò»ÖÖÎÊÌ⣬¾ÍÊÇʹÓÃthinkphp¿ò¼Ü¿ª·¢µÄÍøÕ¾ÎÞ·¨ÉúÑÄ»º´æ£¬Õâ²»µ«»áÓ°ÏìÍøÕ¾µÄÐÔÄÜ£¬»¹¿ÉÄܵ¼ÖÂһЩϣÆæµÄÎÊÌâ·ºÆð¡£±¾ÆªÎÄÕ½«ÏÈÈÝÔì³ÉÕâÖÖÇéÐεÄÔµ¹ÊÔ­ÓÉÒÔ¼°½â¾öÒªÁì¡£

Ò»¡¢ÎÊÌâÔµ¹ÊÔ­ÓÉ

ÔÚThinkPHPµÄ»º´æ»úÖÆÖУ¬Îļþ»º´æÊÇÒ»ÖÖ½ÏÁ¿³£¼ûµÄ»º´æ·½·¨Ö®Ò»¡£¿ÉÊÇ£¬ÓÐʱ¼äÎÒÃÇÔÚʹÓÃÎļþ»º´æʱ£¬Îļþ»º´æ²¢Ã»ÓÐÕý³£´æ´¢¡£ÕâÖÖÇéÐÎͨ³£ÓÐÒÔϼ¸ÖÖÔµ¹ÊÔ­ÓÉ£º

1.ȨÏÞÎÊÌâ

ÔÚLinuxϵͳÏ£¬Îļþ»º´æͨ³£´æ´¢ÔÚij¸öÌض¨µÄĿ¼ÖУ¬ÀýÈç/var/cache/¡£ÈôÊǸÃĿ¼µÄȨÏÞÉèÖò»×¼È·£¬¾Í¿ÉÄܵ¼Ö»º´æÎÞ·¨Õý³£´æ´¢¡£ÔÚÕâÖÖÇéÐÎÏ£¬ÎÒÃÇÐèÒª¼ì²éĿ¼µÄȨÏÞÉèÖÃÊÇ·ñ׼ȷ£¬²¢¾ÙÐÐÏìÓ¦µÄµ÷½â¡£

Á¬Ã¦Ñ§Ï°¡°PHPÃâ·ÑѧϰÌõ¼Ç£¨ÉîÈ룩¡±£»

2.¿Õ¼äȱ·¦

ÔÚÎļþ»º´æÀú³ÌÖУ¬ÈôÊÇĿ¼ûÓÐ×ã¹»µÄ¿Õ¼äÀ´´æ´¢»º´æÊý¾Ý£¬»º´æ¾ÍÎÞ·¨Õý³£´æ´¢¡£ÕâÖÖÇéÐÎÏ£¬ÎÒÃÇÐèÒª¼ì²éĿ¼ÊÇ·ñÓÐ×ã¹»µÄ¿Õ¼ä£¬ÈôÊÇ¿Õ¼äȱ·¦£¬¾ÍÐèÒªÕûÀíһЩ²»ÐëÒªµÄÎļþ»ò½«»º´æĿ¼Òƶ¯µ½ÓÐ×ã¹»¿Õ¼äµÄµØ·½¡£

3.¿ò¼Ü»º´æÉèÖùýʧ

³ýÁËÉÏÊöÁ½ÖÖ³£¼ûÔµ¹ÊÔ­ÓÉ£¬ÉÐÓÐÒ»ÖÖ¿ÉÄÜÐÔÊÇÓÉÓÚ¿ò¼Ü»º´æÉèÖùýʧµ¼ÖµÄ¡£ÀýÈ磬ÈôÊÇ»º´æÉèÖÃÎļþÖеÄcache_pathÉèÖÃÏîÉèÖùýʧ£¬¾Í¿ÉÄܵ¼Ö»º´æÎÞ·¨Õý³£´æ´¢¡£ÔÚÕâÖÖÇéÐÎÏ£¬ÎÒÃÇÐèÒª¼ì²é¿ò¼Ü»º´æÉèÖÃÎļþÖеÄcache_pathÉèÖÃÏîÊÇ·ñÉèÖÃ׼ȷ¡£

¶þ¡¢½â¾öÒªÁì

½â¾öÎļþ»º´æÎÞ·¨ÉúÑĵÄÎÊÌ⣬ÐèҪƾ֤ÏêϸµÄÔµ¹ÊÔ­ÓɾÙÐÐÏìÓ¦µÄµ÷½â¡£ÏÂÃ棬ÎÒÃǽ«»®·Ö´ÓȨÏÞÎÊÌâ¡¢¿Õ¼äȱ·¦ºÍ¿ò¼Ü»º´æÉèÖùýʧÈý¸ö·½Ãæ¾ÙÐÐÏÈÈÝ¡£

ȨÏÞÎÊÌâ

ÔÚLinuxϵͳÖУ¬Í¨³£¿ÉÒÔʹÓÃchownÏÂÁîºÍchmodÏÂÁîÀ´ÉèÖÃĿ¼»òÎļþµÄÓµÓÐÕߺÍȨÏÞ¡£ÔÚÕâÖÖÇéÐÎÏ£¬ÎÒÃÇÐèҪʹÓÃÒÔÏÂÏÂÁîÀ´¼ì²é»º´æĿ¼µÄÓµÓÐÕߺÍȨÏÞ£º

ls -l /var/cache/

µÇ¼ºó¸´ÖÆ

ÈôÊÇÄ¿½ñÓû§²»ÊÇ»º´æĿ¼µÄÓµÓÐÕߣ¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÀ´ÐÞ¸ÄĿ¼µÄÓµÓÐÕߣº

sudo chown username /var/cache/

µÇ¼ºó¸´ÖÆ

ÆäÖУ¬usernameÊÇÄ¿½ñÓû§µÄÓû§Ãû¡£ÈôÊÇÄ¿½ñÓû§Ã»ÓÐȨÏÞÐÞ¸ÄĿ¼µÄÓµÓÐÕߣ¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÀ´ÒÔrootÓû§Éí·ÝÔËÐÐchownÏÂÁ

sudo chown username:groupname /var/cache/

µÇ¼ºó¸´ÖÆ

ÆäÖУ¬groupnameÊÇÄ¿½ñÓû§ËùÔÚµÄÓû§×é¡£

ÈôÊÇ»º´æĿ¼µÄȨÏÞÉèÖò»×¼È·£¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÀ´ÐÞ¸ÄĿ¼µÄȨÏÞ£º

sudo chmod 755 /var/cache/

µÇ¼ºó¸´ÖÆ

ÆäÖУ¬755´ú±íĿ¼µÄȨÏÞÉèÖã¬ÆäÖÐ7ÌåÏÖ¸ÃĿ¼µÄÓµÓÐÕß¾ßÓжÁÈ¡¡¢Ð´Èë¡¢Ö´ÐеÄȨÏÞ£¬5ÌåÏÖ¸ÃĿ¼µÄÆäËûÓû§¾ßÓжÁÈ¡¡¢Ö´ÐеÄȨÏÞ¡£

¿Õ¼äȱ·¦

ÈôÊÇ»º´æĿ¼µÄ¿Õ¼äȱ·¦£¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÀ´Éó²éĿ¼ռÓõĴÅÅ̿ռ䣺

du -h /var/cache/

µÇ¼ºó¸´ÖÆ

ÆäÖУ¬-hÌåÏÖÒÔÒ׶ÁÐԽϸߵÄÃûÌÃÏÔʾЧ¹û¡£

ÈôÊÇĿ¼¿Õ¼äȱ·¦£¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÀ´ÕûÀíĿ¼ÖеIJ»ÐëÒªÎļþ£º

sudo rm -rf /var/cache/*

µÇ¼ºó¸´ÖÆ

ÆäÖУ¬-rfÌåÏֵݹéɾ³ýĿ¼ÏµÄËùÓÐÄÚÈÝ¡£

ÈôÊÇ»º´æĿ¼ËùÔڵķÖÇø¿Õ¼äȱ·¦£¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÀ´Éó²é´ÅÅÌʹÓÃÇéÐΣº

df -h

µÇ¼ºó¸´ÖÆ

¸ÃÏÂÁî»áÏÔʾĿ½ñËùÓзÖÇøµÄ´ÅÅÌʹÓÃÇéÐΣ¬ÎÒÃÇ¿ÉÒÔƾ֤¸ÃЧ¹ûÕÒµ½´æ´¢»º´æµÄ·ÖÇø£¬²¢×ö³öÏìÓ¦µÄµ÷½â¡£

¿ò¼Ü»º´æÉèÖùýʧ

ÈôÊÇ»º´æĿ¼µÄÉèÖÃÏîÉèÖùýʧ£¬¿ÉÒÔÔÚÉèÖÃÎļþÖоÙÐÐÏìÓ¦µÄÐ޸ġ£ÀýÈ磬ÈôÊÇÎÒÃÇÔÚcache.phpÉèÖÃÎļþÖн«cache_pathÉèÖÃΪ/var/cache2/£¬¶øÏÖʵµÄ»º´æĿ¼λÖÃΪ/var/cache/£¬¾ÍÐèÒª½«ÉèÖÃÎļþÖеÄcache_pathÏîÐÞ¸ÄΪ£º

'cache_path' => '/var/cache/'

µÇ¼ºó¸´ÖÆ

ÐèҪעÖصÄÊÇ£¬ÐÞ¸ÄÉèÖÃÎļþºóÒ»¶¨ÒªÖØÆôWebЧÀÍÆ÷£¬²Å»ªÉúЧ¡£ÔÚApacheЧÀÍÆ÷Ï£¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÀ´ÖØÆôApache£º

sudo service apache2 restart

µÇ¼ºó¸´ÖÆ

Èý¡¢Ð¡½á

ÔÚʹÓÃThinkPHP¿ò¼Ü¿ª·¢Íøվʱ£¬¾­³£Óöµ½Îļþ»º´æÎÞ·¨ÉúÑĵÄÇéÐΡ£ÕâÖÖÇéÐÎͨ³£ÊÇÓÉÓÚȨÏÞÎÊÌâ¡¢¿Õ¼äȱ·¦»ò¿ò¼Ü»º´æÉèÖùýʧµÈÔµ¹ÊÔ­ÓÉÔì³ÉµÄ¡£½â¾ö·½·¨°üÀ¨ÐÞ¸ÄĿ¼»òÎļþµÄÓµÓÐÕß¡¢È¨ÏÞÉèÖá¢ÕûÀíĿ¼´¢²»ÐëÒªµÄÎļþ£¬²¢¼ì²é¿ò¼Ü»º´æÉèÖÃÎļþÖеÄÉèÖÃÏîÊÇ·ñÉèÖÃ׼ȷ¡£Í¨¹ýÒÔÉϲ½·¥£¬ÎÒÃÇ¿ÉÒÔÇáËɵؽâ¾öThinkPHPÎÞ·¨ÉúÑÄ»º´æµÄÎÊÌ⣬´Ó¶øÌáÉýÍøÕ¾µÄÐÔÄÜ¡£

ÒÔÉϾÍÊÇthinkphp²»ÉúÑÄ»º´æµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í尊龙凯时人生就是搏ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ尊龙凯时人生就是搏ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ尊龙凯时人生就是搏

13452372176

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎ壬9:30-18:30£¬½ÚãåÈÕÐÝÏ¢

QR code
sitemap¡¢ÍøÕ¾µØͼ