解决无法删除lnmp网站目录中包含.user.ini问题

LNMP无法删除或更改权限,显示:rm: cannot remove `.user.ini’: Operation not permitted!

无法删除“.user.ini”文件解决方法,运行后删除即可

chattr -i /home/wwwroot/yoursite/.user.ini

如果是需要修改文件运行:

chattr +i /home/wwwroot/yoursite/.user.ini

点赞

Leave a Reply

Your email address will not be published. Required fields are marked *