zabbix server is not running: the information displayed may not be current (1)

【问题】:
安装完Zabbix,进入后首页显示警告:Zabbix server is not running: the information displayed may not be current.

【分析】:
使用命令行:systemctl status zabbix-server,看到zabbix-server确实没有在运行,failed状态。

【原因】:
SELinux安全子系统阻挡了。
尝试添加zabbix-server入SELInux的规则内,依然阻止。

【解决】:
临时关闭SELinux:命令行:setenforce 0

我是永久关闭SELinux:修改配置文件需要重启机器:
修改/etc/selinux/config 文件
将SELINUX=enforcing改为SELINUX=disabled
重启系统

zabbix server is not running: the information displayed may not be current (3)

【检查】:
1:查看:Web菜单=》报表=》系统信息
发现“Zabbix服务器端运行中”为“否”(localhost:10051)。
2:systemctl start zabbix-server
命令运行完成,并没有出错提示。
3:netstat -tanp4 |grep zabbix
没有发现zabbix_server在运行。
4:cat /var/log/zabbix/zabbix_server.log
发现如下错误提示:
174944:20210805:154840.416 __mem_malloc: skipped 0 asked 48 skip_min 18446744073709551615 skip_max 0
174944:20210805:154840.416 [file:dbconfig.c,line:102] __zbx_mem_malloc(): out of memory (requested 48 bytes)
174944:20210805:154840.416 [file:dbconfig.c,line:102] __zbx_mem_malloc(): please increase CacheSize configuration parameter
174943:20210805:154840.418 One child process died (PID:174944,exitcode/signal:1). Exiting …

【解决】:
5:vim /etc/zabbix/zabbix_server.conf
找到“CacheSize”,默认是注释了,默认值8M,改为512M
6:再次运行zabbix_server,查看netstat、log、系统信息都正常了。