Linux · 2022年4月1日

linux centos默认占用了25端口,master进程是什么,如何关闭它和禁止postfix开机启动

使用命令:netstat -apn

1.jpg

现在知道它的端口对应程序为master.但是它具体是什么程序呢?

locate  master | grep ‘/master$’

发现路径是/usr/libexec/postfix/master

我们找到程序名postfix了,关闭它

/etc/init.d/postfix stop
或者
service postfix stop

永久方案:
开机不启动

chkconfig --level 2345 postfix off

centos 7
systemctl disable postfix