Loading

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

posted @ 2017-12-08 09:32  纯白、色  阅读(3626)  评论(0编辑  收藏  举报