[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]#

root无权限删除 原因 进程 占用 文件的更多相关文章

  1. 以管理员身份运行 cmd 删除无权限删除的文件夹

    rd 文件夹 PS:删除空文件夹 rd /s 文件夹 PS:删除文件夹,及所有子目录和文件 rd /s/q 文件夹 PS:强制删除文件夹,及所有子目录和文件,不需要提示

  2. 删除Vue中无权限的【node_modules】文件

    npm install rimraf -g rimraf node_modules

  3. Windows下查看什么进程占用文件

    任务管理器→性能Tab→资源管理器→CPU→关联的句柄后面的检索框中录入文件名(关键文件夹即可). 比如我的是在删除tomcat下面的WEB-INF文件出现问题:就输入WEB-INF:mygod,发现 ...

  4. 如何删除google流氓扩展(强制安装,并且无权限删除)

    chrome现在也是流氓遍地跑, 没比IE安全到哪里. TubeAdblocKer 这个流氓扩展,强制安装,无法删除.google了一大堆方法,全部无效.祭出了filelocator这个神器之后,终于 ...

  5. linux文件权限总结(创建root不可以删除文件、只可追加的日志文件等)

    文件类型 对于文件和目录的访问权力是根据读访问,写访问,和执行访问来定义的. 我们来看一下 ls 命令的输出结果 [root@iZ28dr6w0qvZ test]# ls -l 总用量 72 -rw- ...

  6. 解决root用户下都无权限操作的问题

    问题现象: 有时系统设置了一种文件,无法编辑其所有权​ sudo chown users:username {filename} 或者root用户下执行 chown users:username {f ...

  7. PHP CGI 进程占用CPU过高导致CPU使用达到100%的另类原因

    由于使用的华为云的CDN加速,结果发现我的阿里云服务器突然卡顿,网页打开极慢.登陆华为云CDN管理后台发现最高带宽占用30M,流量短时间内达到10GB以上,这么大的流量我的服务器肯定扛不住啊.于是还跟 ...

  8. Linux下进程的文件访问权限

    本文转自 http://blog.csdn.net/chosen0ne/article/details/10581883 对进程校验文件访问权限包括两个部分,一是确定进程的角色(属于哪个用户或者组), ...

  9. 利用lsof恢复进程占用的文件

    说明:经常会遇到这种情况,没有使用正确的方式清理进程占用的文件,比如日志.导致空间并没有释放.也有的时候需要恢复进程占用的文件. 解决方式 lsof |grep del # 找出自己要恢复的文件名称. ...

随机推荐

  1. UPC 2219: A^X mod P

    题形:另类快速幂 题意: f(x) = K, x = 1 f(x) = (a*f(x-1) + b)%m , x > 1 Now, Your task is to calculate ( A^( ...

  2. AC日记——一元三次方程求解 洛谷 P1024

    题目描述 有形如:ax3+bx2+cx+d=0 这样的一个一元三次方程.给出该方程中各项的系数(a,b,c,d 均为实数),并约定该方程存在三个不同实根(根的范围在-100至100之间),且根与根之差 ...

  3. ELK之收集haproxy日志

    由于HAProxy的运行信息不写入日志文件,但它依赖于标准的系统日志协议将日志发送到远程服务器(通常位于同一系统上),所以需要借助rsyslog来收集haproxy的日志.haproxy代理nginx ...

  4. 把Execl表格中的数据获取出来保存到数据库中

    比如我们遇到一些需要把execl表格中的数据保存到数据库中,一条一条保存效率底下而且容易出错,数据量少还好,一旦遇到数据量大的时候就会累死个人啊,下面我们就来把execl表格中数据保存到对应的数据库中 ...

  5. 仿照jquery封装一个自己的js库

    所谓造轮子的好处就是复习知识点,加深对原版jquery的理解.本文系笔者学习jquery的笔记,记述一个名为"dQuery"的初级版和缩水版jquery库的实现.主要涉及知识点包括 ...

  6. 数组对象(NSArray和NSMutableArrray)

    Objective-C中除了可以使用C中的基本数组外,如int[5],char word[] ={‘a’,'b’,'c’};Foundation还提供了NSArray类.Foundation是有序的对 ...

  7. Java反射之Field用法

    在Java反射中Field用于获取某个类的属性或该属性的属性值 一:如何通过Field反射获取类的属性 Field提供如下几种方法: :1:Class.getDeclaredField(String ...

  8. 使用sqlalchemy查询并删除数据表的唯一性索引

    简单描述表结构,字段类型 desc tabl_name 删除索引:alter table `db`.`table_name` drop index `index_name`  注意里面的特殊符号: ` ...

  9. caffe版faster-RCNN环境搭建

    faster-rcnn提出论文: <Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks& ...

  10. 简单理解 ES7 Decorator(装饰器)

    如何使用ES7 Decorator给你的游戏人物开挂? // 预告: 本文有点小难度,对js不太熟的人可能比较懵逼 // 本文的目的是让你们知其然 // ======================= ...