用了chown -R 和 chmod -R 777 都不行之后可以用一下命令 chcon -R -t httpd_sys_rw_content_t <RUNTIM_DIR_PATH> <RUNTIM_DIR_PATH> 为runtime的路径 参考: https://stackoverflow.com/a/16446586/1749293