centos7默认占用端口,查找进程、关闭禁止它开机启动

netstat -tan #查看端口
又查了一下PID

netstat -tanp #带PID名
端口对应程序为master,

查找具体程序

find / -name master #查了一下位置
/usr/libexec/postfix/master
找到程序名是postfix

systemctl stop postfix #停止服务
systemctl disable postfix #禁止开机启动