Linux下网站根目录权限

Posted jorzy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux下网站根目录权限相关的知识,希望对你有一定的参考价值。

网站根目录权限遵循:


文件644

文件夹755

权限用户和用户组www-data


如出现文件权限问题时,请执行下面3条命令:

chown -R www-data.www-data /usr/local/nginx/html/
find /usr/local/nginx/html/ -type d -exec chmod 755 {} \;
find /usr/local/nginx/html/ -type f -exec chmod 644 {} \;

 

 



以上是关于Linux下网站根目录权限的主要内容,如果未能解决你的问题,请参考以下文章