服务器清理挖矿问题

top -c

ps -ef

netstat -antp # 查所有端口链接

ls -al /proc/$PID/exe # 查执行文件

kill -9 $PID # 杀进程

// 查文件

/usr/lib/systemd/system

/usr/lib/systemd/system/multi-user.target.wants

/etc/rc.local

/etc/inittab

/etc/rc0.d/

/etc/rc1.d/

/etc/rc2.d/

/etc/rc3.d/

/etc/rc4.d/

/etc/rc5.d/

/etc/rc6.d/

/etc/rc.d/

查找定时任务

cat /etc/crontab

cat /var/spool/cron

cat /etc/anacrontab

cat /etc/cron.d/

cat /etc/cron.daily/

cat /etc/cron.hourly/

cat /etc/cron.weekly/

cat /etc/cron.monthly/

cat /var/spool/cron/

对定时任务提权

chattr -ia /etc/cron.hourly/logrotate /etc/cron.daily/logrotate /etc/cron.weekly/logrotate /etc/cron.monthly/logrotate

删除定时任务

rm -rf /etc/cron.hourly/logrotate /etc/cron.daily/logrotate /etc/cron.weekly/logrotate /etc/cron.monthly/logrotate

相关推荐
vortex51 分钟前
建立本地 APT 仓库教程
linux·运维开发
潇凝子潇1 小时前
网络协议的零拷贝 和 操作系统的零拷贝异同
网络·网络协议
weixin_445476681 小时前
一天一个设计模式——开闭原则
服务器·设计模式·开闭原则
ZhiqianXia1 小时前
BUG() 和 BUG_ON()
linux
RTC老炮1 小时前
webrtc弱网-BitrateEstimator类源码分析与算法原理
网络·人工智能·算法·机器学习·webrtc
jerryinwuhan1 小时前
LINUX复习资料(二)
linux·运维·服务器
郝学胜-神的一滴1 小时前
Linux下的阻塞与非阻塞模式详解
linux·服务器·开发语言·c++·程序人生·软件工程
悟能不能悟1 小时前
用cmd命令修改适配器ip
网络·tcp/ip·github
Jul1en_1 小时前
HTTP初识(二)
网络·网络协议·http
tcwgq2 小时前
Centos Stream 8 搭建Cas Server
linux·elasticsearch·centos