关闭邮件服务(禁用25端口)
sudo systemctl stop dovecot
sudo systemctl stop postfix
sudo systemctl disable dovecot
sudo systemctl disable postfix
查看postfix是否enable:
systemctl list-unit-files | grep postfix
查看postfix进程的侦听端口:
netstat -tulp
关闭postfix服务:
systemctl stop postfix
在CentOS中彻底删除postfix相关文件:
yum remove postfix
关闭 IPv6
vim /etc/default/grub
#命令中增加 ipv6.disable=1
GRUB_CMDLINE_LINUX="ipv6.disable=1 xxxxxxxx"
#生成新的配置文件并重启
grub2-mkconfig -o /boot/grub2/grub.cfg
reboot