如何解决“touch: cannot touch 'info.php': Permission denied”"/>
# 如何解决“touch: cannot touch 'info.php': Permission denied”
我在 /var/www 目录下创建info.php时出现
touch:cannot touch 'info.php': Permission denied
出现这种问题是因为权限不足,解决方法:对www文件夹授权
~$sudo chmod -R 777 www
- chmod 修改权限指令
- -R 对目前目录下的所有档案与子目录进行相同的权限变更
- 777 是所有用户都拥有最高权限
chmod 使用方式:chmod [-cfvR] [–help] [–version] mode file…
更多推荐
# 如何解决“touch: cannot touch 'info.php': Permission denied”
发布评论