LNMP无法删除.user.ini文件

  • 4
  • 6,619 views
  • A+
所属分类:工具资源

军哥的LNMP一键包有时删除虚拟主机后网站目录下的东西没有自动删除,需要手动删除,你会发现有个隐藏文件.user.ini无法手动删除,因为文件权限已经被锁定,需要先解除锁定。

当你使用lnmp vhost del删除虚拟主机后,采用rm -rf命令删除网站目录出现rm: cannot remove `xxx.com/.user.ini': Operation not permitted的时候输入以下命令

chattr -i /home/wwwroot/cmsky.com/.user.ini

然后再删除就可以了。

weinxin
我的微信公众号
我的微信公众号扫一扫
    • 黑暗游侠 黑暗游侠 2

      Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

      同样发现了这个bug,推荐用oneinstack

        • Sa1ka Sa1ka 0

          Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

          这个不算bug吧,这是用来防跨目录访问的