繁体   English   中英

如何在使用 nginx 的 centos 服务器中清除 laravel 应用程序的缓存

[英]how to clear cache of laravel app in centos server that uses nginx

在此处输入图像描述我正在使用centos托管我的 laravel 应用程序,当我第一次使用 git 上传项目时,它将被缓存,当我尝试更改任何文件时,我会应用清除缓存的所有命令in laravel but didn't fix the only way is to change the root directory of the application after each single change, is centos caching or nginx or laravel or other software in the server or the browser? 即使我清除了 public/index.php 中的所有内容并输入echo 'foo'; 并且仍然有旧的缓存数据

我的 nginx 配置文件的屏幕截图我的 nginx 配置文件的屏幕截图

这可能是您需要授予存储和引导目录 777 权限级别的目录权限问题。 您需要在应用程序的根文件夹上运行以下命令

chmod -R 777 storage 

chmod -R 777 bootstrap

然后尝试影响您的更改。

我尝试了systemctl restart php-fpm现在一切都按预期工作并且所有更改都已应用非常感谢您的帮助我感谢您的帮助

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM