![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
liunx
xiaoxiaodeDream
这个作者很懒,什么都没留下…
展开
-
Failed to restart iptables.service: Unit not found.
在CentOS 7中防火墙已经由firewalld来管理,Centos7默认安装了firewalld,没有安装的可以用yum 命令安装,与iptables区别不小yum install firewalld firewalld-config查看防火墙状态[root@localhost /]# systemctl status firewalld //或者 firewall-cmd --state● firewalld.service - firewalld - dynamic firewall da原创 2021-03-11 17:00:55 · 20576 阅读 · 0 评论 -
Can not connect to local MySQL server through socket /tmp/mysql.sock (2)
首先这个问题是因为没有找到/tmp目录下的mysql.sock先查看你的mysql的my.cnf文件[root@localhost ~]# vi /etc/my.cnf或者直接查找,都可以找到mysql.sock文件所在目录,没有就找到的话 我这个方法就解决不了find / -name mysql.sock看你的my.cnf文件中socket属性指的地址是多少,下面是我的socket指向的文件地址socket=/var/lib/mysql/mysql.sock下面就是去这个地址原创 2021-03-10 18:43:16 · 421 阅读 · 1 评论