1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
| echo 正在卸载预装软件 #PHP systemctl stop php* sudo apt-get autoremove php* -y sudo find / -name "*php*" |xargs rm -rf
#Nginx systemctl stop nginx* sudo apt-get autoremove nginx* -y sudo find / -name "*nginx*" |xargs rm -rf
rm -rf /var/www
#Aria2 systemctl stop aria* sudo apt-get autoremove aria2 -y sudo find / -name "*aria2*" |xargs rm -rf
#页面终端 systemctl stop ttyd.service sudo find / -name "*ttyd*" |xargs rm -rf
#Transmission systemctl stop transmission* apt-get autoremove transmission* -y sudo find / -name "*transmission*" |xargs rm -rf
#KMS sudo find / -name "*vlmcsd*" |xargs rm -rf
#FRP systemctl stop frpc.service sudo find / -name "*frp*" |xargs rm -rf
#NFS apt-get autoremove nfs* -y
#FTP systemctl stop vsftpd apt-get autoremove vsftpd -y sudo find / -name "*vsftpd*" |xargs rm -rf
echo 预装软件卸载完毕
echo 手动关闭6010端口: echo 编辑:nano /etc/ssh/sshd_config echo 注释:X11Forwarding yes
netstat -at
|