删除文件夹出错
现有一个虚拟主机: /home/wwwroot/abc.com原程序使用了ThinkPHP框架,现因故停用,执行rm -rf命令后报错
# rm -rf /home/wwwroot/abc.com/
rm: cannot remove '/home/wwwroot/abc.com/.user.ini': Operation not permitted
rm: cannot remove '/home/wwwroot/abc.com/public': Operation not permitted
然后想起可能忘记执行 chatter -i,顺便执行一下ll跟lsattr
# lsattr /home/wwwroot/abc.com/
--------------e----- /home/wwwroot/abc.com/public
# lsattr /home/wwwroot/abc.com/public/
# lsattr /home/wwwroot/abc.com/.user.ini
-------------------- /home/wwwroot/abc.com/.user.ini
# ll /home/wwwroot/abc.com/
total 4
drwxr-xr-x 2 www www 4096 Jul 20 09:09 public
# ll /home/wwwroot/abc.com/.user.ini
-rw-r--r-- 1 www www 52 Jul 20 10:11 /home/wwwroot/abc.com/.user.ini
# ll /home/wwwroot/abc.com/public/
total 0
再执行rm -rf还是不行
再试试remove_open_basedir_restriction.sh
rm: cannot remove '/home/wwwroot/abc.com/.user.ini': Operation not permitted
Gracefully shutting down php-fpm .
done
Starting php-fpmdone
Reload nginx...done
done.
还是不行,强迫症犯了,请问怎么解决?
重启一下php-fpm试试
lsof +D /home/wwwroot/abc.com/ 看一下是否有程序占用
页:
[1]