zoukankan      html  css  js  c++  java
  • root无权限删除 原因 进程 占用 文件

    [root@test opt]# find / | grep gitlab | xargs rm -rf
    rm: cannot remove ‘/sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/devices.list’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/devices.deny’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/devices.allow’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/cgroup.clone_children’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/cgroup.event_control’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/notify_on_release’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/cgroup.procs’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/tasks’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/devices.list’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/devices.deny’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/devices.allow’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/cgroup.clone_children’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/cgroup.event_control’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/notify_on_release’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/cgroup.procs’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/tasks’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/systemd/system.slice/gitlab-runsvdir.service/cgroup.clone_children’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/systemd/system.slice/gitlab-runsvdir.service/cgroup.event_control’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/systemd/system.slice/gitlab-runsvdir.service/notify_on_release’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/systemd/system.slice/gitlab-runsvdir.service/cgroup.procs’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/systemd/system.slice/gitlab-runsvdir.service/tasks’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/systemd/system.slice/gitlab-runsvdir.service/cgroup.clone_children’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/systemd/system.slice/gitlab-runsvdir.service/cgroup.event_control’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/systemd/system.slice/gitlab-runsvdir.service/notify_on_release’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/systemd/system.slice/gitlab-runsvdir.service/cgroup.procs’: Operation not permitted
    rm: cannot remove ‘/sys/fs/cgroup/systemd/system.slice/gitlab-runsvdir.service/tasks’: Operation not permitted
    [root@test opt]# find / | grep gitlab
    /sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service
    /sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/devices.list
    /sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/devices.deny
    /sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/devices.allow
    /sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/cgroup.clone_children
    /sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/cgroup.event_control
    /sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/notify_on_release
    /sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/cgroup.procs
    /sys/fs/cgroup/devices/system.slice/gitlab-runsvdir.service/tasks
    /sys/fs/cgroup/systemd/system.slice/gitlab-runsvdir.service
    /sys/fs/cgroup/systemd/system.slice/gitlab-runsvdir.service/cgroup.clone_children
    /sys/fs/cgroup/systemd/system.slice/gitlab-runsvdir.service/cgroup.event_control
    /sys/fs/cgroup/systemd/system.slice/gitlab-runsvdir.service/notify_on_release
    /sys/fs/cgroup/systemd/system.slice/gitlab-runsvdir.service/cgroup.procs
    /sys/fs/cgroup/systemd/system.slice/gitlab-runsvdir.service/tasks
    [root@test opt]#
    [root@test opt]#
    [root@test opt]#
    [root@test opt]#
    [root@test opt]# ps -aux | grep gitlab
    root 9215 0.0 0.0 112660 968 pts/2 S+ 17:11 0:00 grep --color=auto gitlab
    root 15857 0.0 0.0 4336 496 ? Ss 09:47 0:00 runsvdir -P /opt/gitlab/service log: does not exist runsvdir /opt/gitlab/service: warning: unable to stat /opt/gitlab/service: file does not exist runsvdir /opt/gitla/service: warning: unable to stat /opt/gitlab/service: file does not exist runsvdir /opt/gitlab/service: warning: unable to stat /opt/gitlab/service: file does not exist runsvdir /opt/gitlab/service: warning: unable to stat /opt/gitlab/service: file does not exist
    root 16163 0.0 0.0 4184 444 ? Ss 09:48 0:00 runsv gitlab-workhorse
    root 16414 0.0 0.0 4184 444 ? Ss 09:49 0:00 runsv gitlab-monitor
    root 16594 0.0 0.0 4328 564 ? S 09:49 0:00 svlogd -tt /var/log/gitlab/postgresql
    root 16595 0.0 0.0 4328 564 ? S 09:49 0:00 svlogd -tt /var/log/gitlab/redis
    root 16599 0.0 0.0 4328 560 ? S 09:49 0:00 svlogd -tt /var/log/gitlab/sidekiq
    root 16609 0.0 0.0 4328 564 ? S 09:49 0:00 svlogd -tt /var/log/gitlab/gitlab-workhorse
    root 16613 0.0 0.0 4328 540 ? S 09:49 0:00 svlogd -tt /var/log/gitlab/nginx
    root 16614 0.0 0.0 4328 540 ? S 09:49 0:00 svlogd -tt /var/log/gitlab/logrotate
    root 16629 0.0 0.0 4328 556 ? S 09:49 0:00 svlogd -tt /var/log/gitlab/node-exporter
    root 16634 0.0 0.0 4328 564 ? S 09:49 0:00 svlogd -tt /var/log/gitlab/gitaly
    root 16646 0.0 0.0 4328 564 ? S 09:49 0:00 svlogd -tt /var/log/gitlab/unicorn
    root 16651 0.0 0.0 4328 560 ? S 09:49 0:00 svlogd -tt /var/log/gitlab/gitlab-monitor
    root 16652 0.0 0.0 4328 560 ? S 09:49 0:00 svlogd -tt /var/log/gitlab/redis-exporter
    root 16669 0.0 0.0 4328 556 ? S 09:49 0:00 svlogd -tt /var/log/gitlab/prometheus
    root 16688 0.0 0.0 4328 564 ? S 09:49 0:00 svlogd -tt /var/log/gitlab/alertmanager
    root 16739 0.0 0.0 4328 560 ? S 09:49 0:00 svlogd -tt /var/log/gitlab/postgres-exporter
    [root@test opt]# ps -aux | grep gitlab | cut -c 10-15
    9217
    15857
    16163
    16414
    16594
    16595
    16599
    16609
    16613
    16614
    16629
    16634
    16646
    16651
    16652
    16669
    16688
    16739
    [root@test opt]# ps -aux | grep gitlab | cut -c 10-15 | xargs kill -9
    kill: sending signal to 9220 failed: No such process
    [root@test opt]#
    [root@test opt]#
    [root@test opt]#
    [root@test opt]# ps -aux | grep gitlab | cut -c 10-15 | xargs kill -9
    kill: sending signal to 9234 failed: No such process
    [root@test opt]# ps -aux | grep gitlab
    root 9239 0.0 0.0 112660 968 pts/2 S+ 17:11 0:00 grep --color=auto gitlab
    [root@test opt]# find / | grep gitlab
    [root@test opt]# find / | grep gitlab
    [root@test opt]#

  • 相关阅读:
    源码安装mysql-5.6.32.tar.gz
    linux 小喇叭 没了
    [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
    ARP协议和DNS协议对比
    subversion 版本库数据迁移 从一台服务器迁移到另一台新有服务器
    局域网通过ip查mac地址、通过mac地址查ip方法
    kmv xml 文件配置vnc 端口冲突 会无法启动
    kvm xxx.xml文件的位置
    select into from 提示 Undeclared variable.....错误的解决办法 && select into from 和 insert into select 的用法和区别
    Redux 入门教程
  • 原文地址:https://www.cnblogs.com/rsapaper/p/9518984.html
Copyright © 2011-2022 走看看