Symfony 警告:重命名(../app/cache/dev,../app/cache/dev_old):拒绝访问.(代码: 5) [英] Symfony Warning : rename (../app/cache/dev , ../app/cache/dev_old ) : Access Denied . (Code : 5)

查看:26
本文介绍了Symfony 警告:重命名(../app/cache/dev,../app/cache/dev_old):拒绝访问.(代码: 5)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发 Symfony 项目.

I am working on Symfony project.

当我尝试这样做时:

php app/console cache:clear

我收到以下错误异常:

Warning : rename (../app/cache/dev , ../app/cache/dev_old ) : Access Denied . (Code : 5) in ../vendors/Symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php on line 76

这里有什么问题?我已将所有权限授予我机器上的用户(Windows 7 操作系统).任何想法为什么会发生?

What is the problem here? I have given all permissions to the user on my machine (Windows 7 OS). Any ideas why it is happening?

谢谢.

推荐答案

确保文件未被使用(如 meze 指出).如果您使用的是 TortoiseGit 或 Netbeans 之类的东西 - 请务必将 cache 文件夹标记为忽略,以免访问它们.

Be sure that the files are not in use (as meze pointed out). If you're using something like TortoiseGit or Netbeans, etc - be sure to mark the cache folder as ignored so that they are not accessed.

如果一切都失败了,请下载一个免费程序,例如 Unlocker,它可以让您快速并轻松地从您尝试修改的文件/文件夹中分离正在运行的进程.

If all else fails, download a free program like Unlocker that will allow you to quickly and easily detach running processes from the files/folders you are trying to modify.

这篇关于Symfony 警告:重命名(../app/cache/dev,../app/cache/dev_old):拒绝访问.(代码: 5)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆