自学内容网 自学内容网

海纳斯新装系统设置,卸载应用


一、修改密码

passwd root    
passwd ubuntu  

二、修改网卡地址

vi /etc/network/interfaces.d/eth0
 

三、修改主机名称

vi /etc/hostname
vi /etc/hosts

四、卸载应用

1.卸载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" " "
systemctl stop php*
apt-get autoremove php* -y
find / -name "php" |xargs rm -rf

2.卸载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

3.卸载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

4.卸载tailscale

systemctl stop tailscale*
rm -rf /opt/tailscale
find / -name "tailscale*" |xargs rm -rf

5.卸载alist

systemctl stop alist*
rm -rf /opt/alist
find /etc -name "alist.service" |xargs rm -rf

6.卸载Aria2

systemctl stop aria*
rm -rf /usr/bin/aria2c
rm -rf /usr/local/aria2
find /etc -name "aria2c.service" |xargs rm -rf

7.卸载Transmission

systemctl stop transmission*
apt-get --purge remove transmission-* -y
rm -rf /usr/share/transmission

8.卸载页面终端

systemctl stop ttyd.service
rm -rf /usr/bin/ttyd
find /etc -name "ttyd.service" |xargs rm -rf

9.卸载KMS

systemctl stop vlmcsd
rm -rf /usr/bin/vlmcsd
find /etc -name "vlmcsd*" |xargs rm -rf

10.卸载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

11.卸载NFS

apt-get --purge remove nfs-* -y

12.FTP

systemctl stop vsftpd
apt-get --purge remove vsftpd -y
find /run -name "vsftpd" |xargs rm -rf

总结

查看剩余应用

netstat -at

原文地址:https://blog.csdn.net/weixin_39504040/article/details/137843171

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!