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