求大神來看看什麼問題

來源:互聯網
上載者:User
_STORAGE_WRITE_ERROR_:./Runtime/Cache/Home/b39761fdd01eadcd4b8a82f371520558.php
錯誤位置
FILE: /alidata/www/redis/thinkphp/Library/Think/Storage/Driver/File.class.php  LINE: 48
TRACE
#0 /alidata/www/redis/thinkphp/Library/Think/Storage/Driver/File.class.php(48): E('_STORAGE_WRITE_...')
#1 [internal function]: Think\Storage\Driver\File->put('./Runtime/Cache...', ' #2 /alidata/www/redis/thinkphp/Library/Think/Storage.class.php(37): call_user_func_array(Array, Array)
#3 /alidata/www/redis/thinkphp/Library/Think/Template.class.php(114): Think\Storage::__callstatic('put', Array)
#4 /alidata/www/redis/thinkphp/Library/Think/Template.class.php(114): Think\Storage::put('./Runtime/Cache...', ' #5 /alidata/www/redis/thinkphp/Library/Think/Template.class.php(76): Think\Template->loadTemplate('


回複討論(解決方案)

之前介面是通的,但是後面重啟過一次伺服器之後,這個API 就不通了,沒有傳回值 資料也傳不進去了

_STORAGE_WRITE_ERROR_ 是 thinkphp 的自訂錯誤
表示目錄 ./Runtime/Cache/Home/ 不可寫
或 ./Runtime/Cache/Home/b39761fdd01eadcd4b8a82f371520558.php 不可被改寫
總之是許可權不夠
清空 Runtime 目錄,並授予 Runtime 寫入權限

雲主機就要出點血了

我這邊(thinkPHP的快取檔案上傳)訪問我們的介面地址(http://redis.wtl119.com)的時候可以正常訪問,

還有一種情況是沒有把thinkPHP檔案的快取檔案上傳的時候訪問(http://redis.wtl119.com)會出現404錯誤,以片情況

我把thinkPHP的快取檔案上傳,加上我們的請求地址(/api/Redis/redis.json)的時候就不能正常訪問了,不能正常的傳輸資料。
一直是以中的情況:

還有就是我輸入訪問(http://redis.wtl119.com/api/Redis/redis)地址的時候,提示404錯誤

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.