Linux CentOS7 默认占用了25端口,是什么进程?如何关闭禁止它开机启动?

问题
Linux CentOS7 默认占用了25端口,是什么进程?如何关闭禁止它开机启动?

解答
在安装其它ftp时,报端口被占用的错误。我们使用

netstat -tanp 

可以看到有个 master 进程占用了这个端口,那么这个master进程到底是什么程序?

find / -name master


可以发现是 postfix 程序(可能是系统自带的邮件服务)我们这里不用它,直接停止禁用开机。

systemctl stop postfix 
systemctl disable postfix