腾讯监控 腾讯清凉监控腾讯轻量监控删除
直接在后台删除监控组件
https://console.cloud.tencent.com/cwp/asset/machine
运行以下代码
/usr/local/qcloud/stargate/admin/uninstall.sh /usr/local/qcloud/YunJing/uninst.sh /usr/local/qcloud/monitor/barad/admin/uninstall.sh
或者
bash -c "$(curl -sS https://gitee.com/fhcloud/lighthouse_serviceuninstall/raw/master/uninstall.sh)"
不行就一键DD吧
wget --no-check-certificate -O AutoReinstall.sh https://git.io/AutoReinstall.sh && bash AutoReinstall.sh 默认登录密码: CentOS:Pwd@CentOS 其他 Linux 系统:Pwd@Linux 其他 Linux 系统:Pwd@Linux 新删监控1
sudo -i
systemctl stop tat_agent
systemctl disable tat_agent
rm -f /etc/systemd/system/tat_agent.service
rm -f /usr/local/qcloud
reboot
新删监控2 debian
#直接复制粘贴全部到SSH窗口即可
sudo -i
systemctl stop tat_agent
systemctl disable tat_agent
/usr/local/qcloud/stargate/admin/uninstall.sh
/usr/local/qcloud/YunJing/uninst.sh
/usr/local/qcloud/monitor/barad/admin/uninstall.sh
rm -f /etc/systemd/system/tat_agent.service
rm -rf /usr/local/qcloud
rm -rf /usr/local/sa
rm -rf /usr/local/agenttools
rm -rf /usr/local/qcloud
process=(sap100 secu-tcs-agent sgagent64 barad_agent agent agentPlugInD pvdriver )
for i in ${process[@]}
do
for A in $(ps aux | grep $i | grep -v grep | awk '{print $2}')
do
kill -9 $A
done
done
检验:TOP查看,控制面板监控仪表盘是否有记录,控制面板修改密码是否失效(失效就对了)同时也干掉腾讯云自家自带的监控报警功能(具体哪一个不知道,但是监控本身会互相唤醒守护...有点蛋疼)
③
#直接复制粘贴全部到SSH窗口即可
#批量修改源为清华
sources="/etc/apt/sources.list"
cat>"${sources}"<<EOF
#清华源
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free
EOF
换完后记得可以更新下,update下一些软件包和系统本身
④
更换靠谱的公共DNS(自选非强迫)
#直接复制粘贴全部到SSH窗口即可
#大陆首选
sed -i '$a\prepend domain-name-servers 223.5.5.5,119.29.29.29,223.5.5.5,183.60.83.19;' /etc/dhcp/dhclient.conf
sed -i '$a\dhclient' /etc/dhcp/dhclient.conf
#直接复制粘贴全部到SSH窗口即可
#非大陆首选
sed -i '$a\prepend domain-name-servers 1.0.0.1,8.8.8.8,1.1.1.1,8.8.4.4;' /etc/dhcp/dhclient.conf
sed -i '$a\dhclient' /etc/dhcp/dhclient.conf
重启后的DNS就不用改啦
其余的你们都会啦,改密码 换删端口 防火墙 BBR 定时.......
只要学会干监控就行,别的都是次要的
网友评论