php artisan cache:clear命令报错
生活随笔
收集整理的這篇文章主要介紹了
php artisan cache:clear命令报错
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在搭建Laravel 5.7版本以上的項目中使用清除緩存命令:
php artisan cache:clear?
有時候會出現以下報錯:
“Failed to clear cache. Make sure you have the appropriate permissions”
原因是差個目錄,需要新建一個目錄,就可以了。
mkdir -p storage/framework/cache/data
同時你需要設置目錄權限?
chmod 777 /home/www/dir/bootstrap/cache && chmod 777 /home/www/dir/bootstrap/cache/*
?
參考:
“Failed to clear cache. Make sure you have the appropriate permissions” in Laravel 5.7_陽水平的博客-CSDN博客
總結
以上是生活随笔為你收集整理的php artisan cache:clear命令报错的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: vue中form表单支持回车键提交踩坑
- 下一篇: php excel中解析显示html代码