sh 权限dir和magento 2的文件
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 权限dir和magento 2的文件相关的知识,希望对你有一定的参考价值。
#!/usr/bin/env bash
echo 'start';
echo 'chmod 644';
find . -type f -exec chmod 644 {} \;
echo 'chmod 755';
find . -type d -exec chmod 755 {} \;
echo 'var chmod 777';
find ./var -type d -exec chmod 777 {} \;
echo 'media chmod 777';
find ./pub/media -type d -exec chmod 777 {} \;
echo 'static chmod 777';
find ./pub/static -type d -exec chmod 777 {} \;
echo 'chmod etc 777';
chmod 777 ./app/etc
echo 'etc/*.xml chmod 644';
chmod 644 ./app/etc/*.xml
echo '-R :www-data';
chown -R :www-data .
echo 'chmod u+x bin/magento';
chmod u+x bin/magento
echo 'finish';
以上是关于sh 权限dir和magento 2的文件的主要内容,如果未能解决你的问题,请参考以下文章