# 如何解决“touch: cannot touch 'info.php': Permission denied”

编程入门 行业动态 更新时间:2024-10-24 14:25:21

# <a href=https://www.elefans.com/category/jswz/34/1771394.html style=如何解决“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”

本文发布于:2024-03-05 16:30:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1712807.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何解决   touch   info   denied   Permission

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!