对于大部分网友来说,选择服务器和镜像之后直接安装软件的,但是我们要知道,有一些软件默认安装在服务器中,但是这些软件并没有对项目有用,反而还会给服务器造成负载和安全问题,这里我们可以删除几个不常用的软件,比如exim4 rpcbind nfs。

这里,我用的是debian镜像,这里我们直接卸载。

1、卸载exim4

apt-get purge --auto-remove exim4 exim4-base exim4-config exim4-daemon-light
rm -rf /var/log/exim4/

2、卸载rpcbind

apt-get purge --auto-remove rpcbind

3、卸载nfs

apt-get purge --auto-remove nfs-kernel-server nfs-common portmap

这里我们是直接彻底卸载的,我们也可以不卸载就关闭。

systemctl disable nfs-common
systemctl disable rpcbind
systemctl disable exim4
systemctl stop nfs-common
systemctl stop rpcbind
systemctl stop exim4
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。