前言
今天在搭建私有邮件服务器时发现,centos居然有个自带的 postfix 服务在25号端口上,虽然不知道这个服务是做什么用的,但是它和邮件服务端口冲突了,那就只能踢了它
开始处理
查看postfix是否为enable
systemctl list-unit-files | grep postfix
查看postfix进程的侦听端口
netstat -tulp
关闭postfix服务
systemctl stop postfix
在CentOS中删除postfix相关文件
yum -y remove postfix
处理结束后再查看一下25号端口是否被释放
lsof -i:25
Comments | NOTHING