Ubuntu18.04服务器永久停止和禁用firewalld
老白博客分享专题:Ubuntu18.04服务器永久停止和禁用firewalld
1.首先检查firewalld的运行状态:
systemctl status firewalld
2.停止firewalld服务:
systemctl stop firewalld
3.禁用firewalld服务,使其在启动时不会自动运行:
systemctl disable firewalld
4.验证firewalld已经停止并禁用:
systemctl is-active firewalld # 应该显示为"inactive"
systemctl is-enabled firewalld # 应该显示为"disabled"