系統(tǒng):Centos7
Zabbix4.0LTS
一、前端初始化postgresql數(shù)據(jù)庫(kù)連接不上
需要將配置文件/etc/zabbix/zabbix_server.conf中DBHost默認(rèn)的localhost刪除,localhost是用于MySQL數(shù)據(jù)庫(kù)的配置,置空則是用于PostgreSQL的配置。
注:置空只適用于zabbix與postgres部署在同一臺(tái)服務(wù)器上。建議還是直接配置ip

截圖
官方說(shuō)明

二、server啟動(dòng)時(shí)報(bào)錯(cuò)
cannot start alert manager service: Cannot bind socket to "/var/run/zabbix/zabbix_server_alerter.sock": [13] Permission denied
需要執(zhí)行命令setenforce 0臨時(shí)關(guān)閉,然后修改/etc/selinux/config 設(shè)置SELINUX=disabled永久關(guān)閉(配置需要重啟系統(tǒng)才能生效,所以本次需要臨時(shí)關(guān)閉)