查看端口对应的PID
[root@localhost ~]# netstat -atlnp
[root@localhost ~]# netstat -atlnp | grep 25
根据对应的PID找到进程相关文件得知是postfix服务在启动
[root@localhost ~]# ps aux | grep 1069
找到服务文件
[root@localhost ~]# systemctl list-unit-files | grep post
关闭自启动
[root@localhost ~]# systemctl disable --now postfix.service