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

一、问题描述

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

Redirecting to /bin/systemctl stop iptables.service Failed to stop iptables.service: 解决方案_第1张图片

关闭防火墙出现问题:


二、解决方案

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

centOS7的命令:
systemctl stop firewalld

centOS6及之前的命令:
service iptables stop

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

Redirecting to /bin/systemctl stop iptables.service Failed to stop iptables.service: 解决方案_第2张图片


 

       欢迎关注博主,欢迎互粉,一起学习!

       感谢您的阅读,不足之处欢迎指正!

 

你可能感兴趣的:(linux,软件使用,Java,数据库,mysql,centos)