问题1:
zabbix-server启动报错 Cannot bind socket to “/var/run/zabbix/zabbix_server_alerter.sock
解决方法:关闭selinux
vim /etc/selinux/config
将config文件中SELINUX=enforcing改为SELINUX=disabled
重启服务器
reboot
问题2:
[file:dbconfig.c,line:90] zbx_mem_malloc(): out of memory (requested 120 bytes)
[file:dbconfig.c,line:90] zbx_mem_malloc(): please increase CacheSize configuration parameter
解决方法:内存用完,增加缓存参数
vim /etc/zabbix/zabbix_server.conf
找到Option: CacheSize,去掉CacheSize前面的#号,并将CacheSize=8M设置为CacheSize=2048M
### Option: CacheSize
# Size of configuration cache, in bytes.
# Shared memory size for storing host, item and trigger data.
#
# Mandatory: no
# Range: 128K-64G
# Default:
CacheSize=2048M
重启zabbix-server服务
systemctl start zabbix-server