日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

cache目录没有权限

發(fā)布時(shí)間:2025/3/20 编程问答 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 cache目录没有权限 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

?

今天部署了新服務(wù)器發(fā)現(xiàn)cache目錄沒有權(quán)限,

App 26772 stderr: Started GET "/investors" for 103.238.226.130 at 2015-08-25 11:25:47 +0800 App 26772 stderr: Processing by InvestorsController#index as HTML App 26772 stderr: Read fragment views/investors/1-20150825032428475102000/zh-CN/ba9ec9f1a927c00438fab3e53de969e8 (0.2ms) App 26772 stderr: Write fragment views/investors/1-20150825032428475102000/zh-CN/ba9ec9f1a927c00438fab3e53de969e8 (0.8ms) App 26772 stderr: Rendered investors/_investor.html.slim (3.8ms) App 26772 stderr: Rendered investors/index.html.slim within layouts/application (10.1ms) App 26772 stderr: Completed 500 Internal Server Error in 13ms App 26772 stderr: App 26772 stderr: ActionView::Template::Error (Permission denied - /home/ubuntu/campo/releases/20150824101227/tmp/cache/84B): App 26772 stderr: 1: - cache [investor, locale] do App 26772 stderr: 2: .investor-frame App 26772 stderr: 3: .investor id="investor-#{investor.id}" App 26772 stderr: 4: .investor-content App 26772 stderr: app/views/investors/_investor.html.slim:1:in `_app_views_investors__investor_html_slim___4107010476464905044_55536860' App 26772 stderr: app/views/investors/index.html.slim:40:in `_app_views_investors_index_html_slim___256757312322326570_55623180' App 26772 stderr:

查一下文件夾目錄的權(quán)限

# namei -om /home/ubuntu/campo/releases/20150824101227/tmp/cache f: /home/ubuntu/campo/releases/20150824101227/tmp/cachedrwxr-xr-x root root /drwxr-xr-x root root homedrwxr-xr-x ubuntu ubuntu ubuntudrwxr-xr-x root root campodrwxr-xr-x root root releasesdrwxr-xr-x root root 20150824101227drwxr-xr-x root root tmplrwxrwxrwx root root cache -> /home/ubuntu/campo/shared/tmp/cachedrwxr-xr-x root root /drwxr-xr-x root root homedrwxr-xr-x ubuntu ubuntu ubuntudrwxr-xr-x root root campodrwxr-xr-x root root shareddrwxr-xr-x root root tmpdrwxr-xr-x root root cache

網(wǎng)上看了一下沒有太好的方法,只能先修改下權(quán)限了

# chmod 777 /home/ubuntu/campo/shared/tmp/cache/

?

轉(zhuǎn)載于:https://www.cnblogs.com/iwangzheng/p/4758012.html

總結(jié)

以上是生活随笔為你收集整理的cache目录没有权限的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。