在部署安装zabbix_server 的时候启动部署好的zabbix_server 时server 端无法正常启动


 启动

 /usr/local/zabbix/sbin/zabbix_server


 查看报错日志 


tail -f  /tmp/zabbix_server.log


31522:20170220:220821.003 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket 

'/var/lib/mysql/mysql.sock' (13)


从报错信息上查看 找不到sock 文件 /var/lib/mysql/mysql.sock,


查看编编译指定的路径为 /var/lib/mysql/mysql.sock


尝试解决


ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock


查看 zabbix server 端是否启动成功


 netstat -tnlp | grep zabbix

tcp        0      0 0.0.0.0:10051           0.0.0.0:*               LISTEN      32042/zabbix_server