标签:sock 配置文件 foreign try lib serve recv state art
安装zabbix遇到的问题
Error downloading packages:
zabbix-server-mysql-3.2.11-1.el7.x86_64: [Errno 256] No more mirrors to try.
解决yum check-update检查可更新的程序就可继续安装
启动zabbix遇到的一些错误
# systemctl restart zabbix-server zabbix-agent httpd
# systemctl enable zabbix-server zabbix-agent httpd
[root@localhost ~]# netstat -lntp //死活看不到服务端
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 5944/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 6224/master
tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 6560/zabbix_agentd
tcp6 0 0 :::80 :::* LISTEN 6556/httpd
tcp6 0 0 :::22 :::* LISTEN 5944/sshd
tcp6 0 0 ::1:25 :::* LISTEN 6224/master
查看日志
cat /var/log/zabbix/zabbix_server.log
报错
6603:20190824:031515.677 [Z3001] connection to database ‘zabbix‘ failed: [2002] Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘ (2) //显示找不到mysql.sock的文件
find / -name mysql.sock搜索下载那里
# find / -name mysql.sock
/tmp/mysql.sock 找到是在tmp下
这时候编辑zabbix-server的配置文件
找到#DBSocket改为DBSocket=/tmp/mysql.sock即可
更改完建议重启
标签:sock 配置文件 foreign try lib serve recv state art
原文地址:https://blog.51cto.com/14237749/2433095