示例查看 软件包
dpkg --get-selections|grep php
示例查看运行
ps -ef |grep php*
#卸载php
systemctl stop php*
apt-get autoremove php7* -y
find /etc -name "php" |xargs rm -rf
find /run -name "php" |xargs rm -rf
apt purge dpkg -l | grep php| awk '{print $2}' |tr "\n" " "
#Nginx
echo "卸载nginx (安装私人 Git 仓库命令同时也会删除)"
systemctl stop nginx*
apt-get --purge remove nginx -y
apt-get --purge remove nginx-common -y
apt-get --purge remove nginx-core -y
rm -rf /var/www
rm -rf /etc/first_init.d/web.sh
rm -rf /usr/share/bak/gitweb
rm -rf /bin/install-gitweb.sh
#smbd
systemctl stop smbd*
apt-get remove --purge samba -y
find /etc -name "samba" |xargs rm -rf
find /var -name "samba" |xargs rm -rf
find /run -name "samba" |xargs rm -rf
rm -rf /usr/share/samba
#tailscale
systemctl stop tailscale*
rm -rf /opt/tailscale
find / -name "tailscale*" |xargs rm -rf
#alist
systemctl stop alist*
rm -rf /opt/alist
find /etc -name "alist.service" |xargs rm -rf
#Aria2
systemctl stop aria*
rm -rf /usr/bin/aria2c
rm -rf /usr/local/aria2
find /etc -name "aria2c.service" |xargs rm -rf
#Transmission
systemctl stop transmission*
apt-get --purge remove transmission-* -y
rm -rf /usr/share/transmission
#页面终端
systemctl stop ttyd.service
rm -rf /usr/bin/ttyd
find /etc -name "ttyd.service" |xargs rm -rf
#KMS
systemctl stop vlmcsd
rm -rf /usr/bin/vlmcsd
find /etc -name "vlmcsd*" |xargs rm -rf
#FRP
systemctl stop frpc.service
rm -rf /etc/first_init.d/frpc.sh
rm -rf /etc/frp
rm -rf /usr/bin/frpc
rm -rf /etc/systemd/system/frpc.service
#NFS
apt-get --purge remove nfs-* -y
#FTP
systemctl stop vsftpd
apt-get --purge remove vsftpd -y
find /run -name "vsftpd" |xargs rm -rf