gpt4 book ai didi

ruby-on-rails - 无法访问文件

转载 作者:太空宇宙 更新时间:2023-11-04 03:56:53 27 4
gpt4 key购买 nike

我在 centOS 中使用 Rails。

rake db:migrate 未运行。

有办法解决吗?我应该重建吗?

[root@localhost db]# ll
ls: cannot access development.sqlite3: Permission denied
total 125
-?????????? ? ? ? ? ? development.sqlite3
drwxrwxrwx. 1 root root 8192 Jun 20 16:44 migrate
-rwxrwxrwx. 1 root root 102400 Jun 25 10:58 production.sqlite3
-rwxrwxrwx. 1 root root 14850 Jun 25 11:00 schema.rb
-rwxrwxrwx. 1 root root 1341 Jun 25 20:10 seeds.rb
-rwxrwxrwx. 1 root root 0 Jun 25 20:16 test.sqlite3
[root@localhost db]# rm development.sqlite3
rm: cannot remove `development.sqlite3': Permission denied

最佳答案

可能是权限问题尝试使用 super 用户

sudo rake db:migrate 

或使用

授予文件夹权限
chmod -r 777 folder_name

关于ruby-on-rails - 无法访问文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24407520/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com