Centos 7 关闭邮件服务及禁用IPv6


关闭邮件服务(禁用25端口)

sudo systemctl stop dovecot
sudo systemctl stop postfix
sudo systemctl disable dovecot
sudo systemctl disable postfix

关闭 IPv6

vim /etc/default/grub

#命令中增加 ipv6.disable=1
GRUB_CMDLINE_LINUX="ipv6.disable=1 xxxxxxxx"

#生成新的配置文件并重启
grub2-mkconfig -o /boot/grub2/grub.cfg
reboot

参考博文:
https://www.crifan.com/centos_disable_email_services_dovecot_postfix/
http://blog.csdn.net/bluishglc/article/details/41390785


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM