首页 > 系统相关 >Redirecting to /bin/systemctl stop iptables.service Failed to stop iptables.service: 解决方案

Redirecting to /bin/systemctl stop iptables.service Failed to stop iptables.service: 解决方案

时间:2022-11-17 23:27:14浏览次数:63  
标签:iptables service stop 防火墙 centOS7 systemctl

转载自:https://blog.csdn.net/buluxianfeng/article/details/108128520

 

=================

 

一、问题描述

在linux系统(centOS7)下安装mysql后,发现因防火墙问题连接不上数据库:

 

关闭防火墙出现问题: 

二、解决方案

centOS7下关闭防火墙与centOS6及之前的命令有所不同:

centOS7的命令:
systemctl stop firewalld

centOS6及之前的命令:
service iptables stop


至此,问题解决,即可远程连接数据库。

 


————————————————
版权声明:本文为CSDN博主「不撸先疯。」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/buluxianfeng/article/details/108128520

标签:iptables,service,stop,防火墙,centOS7,systemctl
From: https://www.cnblogs.com/hd92/p/16901740.html

相关文章